-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
The code doesn't support minified css code.
On line 81 you replace every single semicolon with !important; this procedure is a problem with minified css code.
Line 81:
declarations = declarations.replace(/;/g, ' !important;');
Example CSS Markup (Minified):
div.test!>span:hover{background:red}
Problem:
There is no ending semicolon, as there is just one rule (When there is more than one rule the last one still misses the ending semicolon) being set the semicolon is trivial and removed by every single minifier.
Even though the CPS# class is being added correctly on hover, the styling rules are not set as are being overridden by the default ones.
Metadata
Metadata
Assignees
Labels
No labels