Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
mirisuzanne opened this issue Jun 18, 2024 · 1 comment
Closed
1 task done

Comments

@mirisuzanne
Copy link

こんにちは 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.

  • Explainer¹ (minimally containing user needs and example code): https://css.oddbird.net/layers/link-layer/
  • Primary contacts (and their relationship to the specification):
    • Miriam Suzanne (@mirisuzanne), Invited Expert (explainer author & Cascade L5 co-editor)
    • Simon Pieters (@zcorpan), Mozilla (WHATWG contact)
    • Alan Stearns (@astearns), Adobe (CSSWG Co-Chair)
  • Organization/project driving the design: CSSWG/WHATWG
  • External status/issue trackers for this feature (publicly visible, e.g. Chrome Status): None yet

Further details:

@jyasskin
Copy link
Contributor

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!

@jyasskin jyasskin added Progress: review complete Resolution: satisfied The TAG is satisfied with this design labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants