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

@bramus Does this mean that we couldn't mention the strong layers in the “short” notation when adding styles to them?

```CSS
@layer foo {
    @layer! bar {
    }
}
```

no longer could be shortened to something like `@layer foo.!overrides.bar {}`.

I also like the explicitness of the `!overrides` where you immediately understand where a layer mentioned inside will be. The `@layer!` is short, but maybe _too short_, I'd much prefer something like `@layer-overrides`, but I still think that having a single “system” layer is the most straightforward way.

And we still should be able to detect their support with `@supports at-rule()` using the descriptors feature detection I think, see https://github.com/w3c/csswg-drafts/issues/2463#issuecomment-1016720310 (given browsers will implement it).

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


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

Received on Thursday, 4 July 2024 12:38:42 UTC