Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

> Also there is a big problem with the shadowlayers proposal (and some existing demonstrations like half-light): all document styles are wrapped in a layer. This may be fine for specific cases, but it's not a good default. In fact the default should be flipped, because that's how the cascade already works today: page styles cascade after the shadow-root's own styles.

Cascade layers inside a shadow tree cascade independently of page styles (except the context step), but if this means that in a shadow tree unlayered styles should have a way to be at a user settable priority, there is an open issue [Allow authors to explicitly place unlayered styles in the cascade layer order #6323](https://github.com/w3c/csswg-drafts/issues/6323).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-2013269579
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/909/2013269579@github.com>

Received on Thursday, 21 March 2024 18:40:37 UTC