You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the parser side, the style1 stylesheet will be applied to document and my-element#shadowRoot, and the style2 stylesheet will be only applied to document.
Advantage:
Backward compatibility
Strong expression ability, corresponding to DocumnetOrShadowRoot.adoptedStylesheets
No duplicate code will be generated during serialization
Serialization
For manual serialization of adoptedStylesheets while traversing the DOM, can control the id generation method. can also add argument option to getInnerHTML to specify the id generation method, e.g:
Thanks for the suggestion, but this repo is probably not the best place to file it. Declarative shadow DOM is now a web standard, so new issues and suggestions should be raised on the WHATWG repo.
e.g:
On the parser side, the style1 stylesheet will be applied to
document
andmy-element#shadowRoot
, and the style2 stylesheet will be only applied todocument
.Advantage:
DocumnetOrShadowRoot.adoptedStylesheets
Serialization
For manual serialization of
adoptedStylesheets
while traversing the DOM, can control theid
generation method. can also add argument option togetInnerHTML
to specify theid
generation method, e.g:The text was updated successfully, but these errors were encountered: