douceur icon indicating copy to clipboard operation
douceur copied to clipboard

Preserve css style header after inlining.

Open diogogmt opened this issue 7 years ago • 0 comments

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.

diogogmt avatar Mar 09 '17 21:03 diogogmt