-
Notifications
You must be signed in to change notification settings - Fork 7
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
extract style > css / css examples #2
Comments
For prefixing an approach similar to https://github.com/requireio/wrap-selectors might be interesting, though you say it won't work well when writing out to a file.css. Can you elaborate? As for the cascading: I think the top level > lower level seems like a good approach. Some level of cascade would be nice though; |
If the class name is dynamically generated, it will be different upon each initialization. So if previously compiled to a
I agree. It would be nice if the element author had some control over how it will cascade. It would also help optimize to avoid selectors like: My main goal is an elegant alternative to inline styles. Elements provide an overridable static style for a separately served asset or if the user really wants to avoid the request, an inline |
It appears |
I agree. Let me know if you come up with more options for us to try. I moved the |
Opened an issue about this on |
CSS can be attached to elements with:
this.attachCSS('css src')
which will localize the CSS to the element.The text was updated successfully, but these errors were encountered: