Re: [csswg-drafts] [css-cascade-5] Allow authors to explicitly place unlayered styles in the cascade layer order (#6323)

> This is very much needed for a "reset" / "base styles" cascade layer to even be usable in a real-world scenario (i.e. where it's pretty much impossible to guarantee that every CSS rule used by the document is inside a cascade layer).

Oh wow, I was wrong about this. @mirisuzanne, you might want to edit your OP, because it still mentions that "by default unlayered style come first (lowest cascade priority) in the source order", but this was changed following #6284. Now that unlayered styles have priority over layered styles, it makes a lot more sense to use cascade layers for CSS resets/base styles. But I still think this would be a nice feature.

-- 
GitHub Notification of comment by benface
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6323#issuecomment-2115713902 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 16 May 2024 16:37:24 UTC