You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcritters=newCritters({// optional configuration (see below)});consthtml=` <style> .red { color: red } .blue { color: blue } [class*=' test-'] {background-color: green} </style> <html> <body> <div class="blue test-green">I'm Blue</div> </body> </html> `;constinlined=awaitcritters.process(html);console.log(inlined);
this results to
Inlined 17 B (15% of original 109 B) of inline CSS.
Time 10.45
<style>.blue{color:blue}</style>
<html data-critters-container>
<body>
<div class="blue test-green">I'm Blue</div>
</body>
</html>
but the expectation is that [class*=' test-'] {background-color: green} should be still present.
The text was updated successfully, but these errors were encountered:
When using the Critter with a css selector attribute contains or attribute starts with, then the Critter removes this selector even if its used.
this results to
but the expectation is that
[class*=' test-'] {background-color: green}
should be still present.The text was updated successfully, but these errors were encountered: