-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Re-fix custom properties css specificity mixin issue #3326
Comments
There is a flaw in the design of the custom property shimming. The PR simply |
It's interesting to note that making the document level style node a custom-style works around the issue. |
Good point. We're trying to preserve as much of the spirit of the spec around |
In my mind, the most correct way to make the shim'd styles have the lowest priority is to generate classnames for all shim'd nodes that are unique, and of the lowest specificity we can make them. As long as the generated shim styles are placed before other styles, the user styles should then override as written. @miztroh the reason custom-style works is because it appends a |
Well, I have custom build of 1.2.3 when specificity fix was not reverted and I see green block in both Firefox and Chromium with both Shadow DOM and Shady DOM. |
Sorry, probably someone modified it to use I do not see that it is feasible to have smaller specificity than it is now, especially that even
|
Yes, we should document that using I think @azakus's idea may strike the best balance. Practically, this would mean that we change shim'ing for |
Anyway this is only half of the solution even for this case, since it doesn't cover |
A PR would be welcome. Thanks for your help! |
#3323 reverted a desirable change from fd57784 that we'd like to have back. Need to track down the tests that broke, find the root cause, and re-integrate the change with a fix.
The text was updated successfully, but these errors were encountered: