Skip to content

Add Support for local <style> tag internal references for <link> tags #11212

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KurtCattiSchmidt
Copy link

@KurtCattiSchmidt KurtCattiSchmidt commented Apr 11, 2025

This change updates the HTML5 specification to support fragment references to <style> tags in the <link> tag's href attribute. This is very useful for sharing styles with shadow DOM subtrees without the need for duplicated <style> tags or external CSS files.

See the LRLR Explainer and #11019 for more details.

  • At least two implementers are interested (and none opposed):
    • Chromium
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: https://issues.chromium.org/issues/409942763
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): N/A
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): N/A
  • Corresponding HTML AAM & ARIA in HTML issues & PRs: I don't think this needs any ARIA/AAM changes.
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/index.html ( diff )
/links.html ( diff )
/semantics.html ( diff )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant