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

Special characters, the class directive and scoped css #2929

Closed
mrkishi opened this issue Jun 2, 2019 · 0 comments · Fixed by #2946
Closed

Special characters, the class directive and scoped css #2929

mrkishi opened this issue Jun 2, 2019 · 0 comments · Fixed by #2946
Labels

Comments

@mrkishi
Copy link
Member

mrkishi commented Jun 2, 2019

REPL

Currently, we can already use special characters in class names:

<element class="some:name" class:another:name={enabled}>Hello world</element>

Both of these will be added to the element correctly.

However, the ones added with the class: directive won't get properly scoped. Given:

<style>
    .some\:name { ... }
    .another\:name { ... }
</style>

The first selector will be scoped and included, while the second will be dropped with an Unused CSS selector warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant