-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
shadowRoot attached on DIV Element does not reset styles with all:initial #7249
Comments
This sounds like a browser bug, not a spec bug, so it's probably best filed on browser bug trackers, not spec bug trackers? |
I made an update. Looks like |
Which outcome above is unexpected? I'm probably missing something but it seemed like these results are consistent with the specificities of the |
Non-important style rules inside a shadow root has a lower precedence to non-important & important style rules outside the shadow root. If you wanted to force resetting all properties on the host, it needs to be important since important style rules inside a shadow root has a higher precedence over everything else: i.e. |
Sounds like this is working as designed. Thanks all! |
Should it be possible to reset styles with
:host{ all:initial }
??Same behavior on Chromium and FireFox:
JSFiddle: https://jsfiddle.net/WebComponents/6u1e4m3y/
The text was updated successfully, but these errors were encountered: