Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve css pseudo class functions #16

Open
philippone opened this issue Aug 18, 2020 · 0 comments
Open

Preserve css pseudo class functions #16

philippone opened this issue Aug 18, 2020 · 0 comments

Comments

@philippone
Copy link
Contributor

Hello,

I would like to preserve css pseudo class functions like :host() but currently all pseudo class functions are escaped.

Example:

:host(.selector) {...}

:host(:active) {...}

is resolved to:

:host(.selector),
// `host` is in blacklist: last parenthesis is escaped
:host(.selector\) {...}
// `host` not in blacklist:
./:host\(.selector\) {...}

:host(:active),
.\:host\(.\:active\) {...}

I need the following output:

// function remains unchanged
:host(.selector) {...}

:host(:active),
// function remains unchanged, only pseudo state is resolved
:host(.\:active) {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant