Skip to content

Minified CSS #17

@Shakarhaba

Description

@Shakarhaba

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions