Skip to content

Does not recognize root element in some cases #23

@whatisaphone

Description

@whatisaphone

It looks like this plugin tries not to break html selectors, but it doesn't handle more complex selectors containing html.

Test case:

Input:

html[data-whatintent=keyboard] .button:focus {}

Actual output:

:not(#\9):not(#\9):not(#\9) html[data-whatintent=keyboard] .button:focus {}

These styles never end up being applied because html has no parent element

Expected output:

html[data-whatintent=keyboard]:not(#\9):not(#\9):not(#\9) .button:focus {}

It should append stackableRoot to the root selector, instead of prepending

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions