douceur
douceur copied to clipboard
Preserve css style header after inlining.
This is more question/feature-request.
I want to preserve the existing CSS selectors after running through the inliner, eg;
Before
<html>
<head>
<style>
.my-class {
color: red;
}
</style>
</head>
<body>
<p class="my-class">Test</p>
</body>
</html>
After
<html>
<head>
<style>
.my-class {
color: red;
}
</style>
</head>
<body>
<p class="my-class" style="color: red;">Test</p>
</body>
</html>
So the my-class
class is both inlined in the p
element as well as preserved in the <style>
header.