Skip to content

[css-cascade-4] Could you clarify if a web page’s DOM tree itself is an encapsulation context? #5501

Closed
@simevidas

Description

@simevidas

Regarding the new Context criterion

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].

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions