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
A document language can provide for blending declarations sourced from different encapsulation contexts, such as the nested tree contexts of shadow trees in the [DOM].
Is a web page’s own DOM tree also an encapsulation context?
For example, if a page has a custom element with a shadow DOM, are there two encapsulation contexts (the page’s own tree and the nested shadow tree), or is there only one encapsulation context (the nested shadow tree)?
The text was updated successfully, but these errors were encountered:
Ah, I remembered that style rules from the other page aren’t matched against elements in the shadow tree, and vice versa.
So when does this blending of declarations from different encapsulation contexts during the cascade happen in HTML in practice? Could you give an example?
Regarding the new Context criterion
https://drafts.csswg.org/css-cascade-4/#encapsulation-contexts
Is a web page’s own DOM tree also an encapsulation context?
For example, if a page has a custom element with a shadow DOM, are there two encapsulation contexts (the page’s own tree and the nested shadow tree), or is there only one encapsulation context (the nested shadow tree)?
The text was updated successfully, but these errors were encountered: