Skip to content

[css-cascade] Provide a syntax for re-using cascade layers across encapsulation context? #5854

@mirisuzanne

Description

@mirisuzanne

This was raised in #4984, related to the Cascade level 5 spec.

From the spec:

Note: Layer name matching does not cross the shadow DOM boundary,
so the ordering of layers in the light DOM has no impact
on the order of identically-named layers in the shadow DOM.

Are there use-cases where an author would want to…

  • Reference or adjust global layer, from inside shadow-DOM?
  • Reference or adjust an encapsulated shadow-DOM layer, from the global styles?

I don't currently know of any use-cases, but if they exists we probably need a special syntax for that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions