w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
333 stars 55 forks source link

A layer attribute for layering of linked CSS style sheets in HTML #970

Closed mirisuzanne closed 1 month ago

mirisuzanne commented 5 months ago

こんにちは TAG-さん!

I'm requesting a TAG review of an HTML layer attribute for the <link> tag.

One of the primary use-cases for CSS Cascade Layering is to manage the priority of third-party CSS (libraries and design systems) in relation to site-specific styles. It's currently possible to manage this layering on the CSS @import rule, as defined in CSS Cascading and Inheritance Level 5. However, there are many situations where authors do not want to use @import for performance reasons, or cannot use @import because of build tooling. Providing this functionality on the HTML <link> tag would bring it in better alignment with the CSS import functionality.

There seems to be broad consensus on this aspect of the feature, and I wanted to get formal review in order to hopefully move the conversation forward.

Further details:

jyasskin commented 1 month ago

We discussed this in a breakout session with the conclusion that we like it, and we're happy for the WHATWG to figure out the exact name and details. Thanks for working on it!