You're right that there are a few ongoing discussions which specific attribute to use, but I don't think this blocks implementing the core feature behind a flag.
I'll update the explainer to reflect the fetch behavior, thanks for pointing that out. I don't think it's a dealbreaker because 1) it makes polyfilling easy by just adding an onerror handler, and 2) the current page should always be in the cache so this should't hit the network and will return immediately. ________________________________ From: Noam Rosenthal <nrosent...@chromium.org> Sent: Wednesday, April 30, 2025 12:12 AM To: Kurt Catti-Schmidt (SCHMIDT) <ksc...@microsoft.com> Cc: blink-dev@chromium.org <blink-dev@chromium.org> Subject: [EXTERNAL] Re: [blink-dev] Intent to Prototype: Local Style References in Link Tags On Wed, Apr 30, 2025 at 3:14 AM 'Kurt Catti-Schmidt (SCHMIDT)' via blink-dev <blink-dev@chromium.org<mailto:blink-dev@chromium.org>> wrote: Contact emails ksc...@microsoft.com<mailto:ksc...@microsoft.com> Explainer https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/LocalReferenceLinkRel/explainer.md Specification This will be added to the HTML5 specification. Summary Extends the ability of the <link> tag to support fragment identifier references to inline style tags. This is only supported when the <link> tag is used to include a stylesheet (<link rel="stylesheet">). This feature is useful for shadow DOM, allowing developers to selectively share inline styles between the light DOM and shadow DOM. Without this feature, the only declarative options for sharing styles with shadow DOM nodes are to either duplicate <style> tags or use external CSS files. As a co-author of the explainer I'm a bit confused that we're ready to prototype this... The WHATWG meeting brought up a major backwards compat issue around this proposed solution: it would load the whole document and treat it as a stylesheet in browsers that don't support this feature. I see now that this drawback is not defined in the explainer. I'm sure that this issue is solvable (e.g. with an explicit `type` attribute? a new rel?) but perhaps we should solve that before implementing? -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/BL4PR00MB255083B3DDAAEA447622FA1BD6832%40BL4PR00MB2550.namprd00.prod.outlook.com.