On Wed, Apr 30, 2025 at 3:14 AM 'Kurt Catti-Schmidt (SCHMIDT)' via blink-dev <blink-dev@chromium.org> wrote:
> Contact emails > 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/CAJn%3DMYaK78MeC7SPD68e8DTGfWtnJkkWZJopZ%3DNmB%3D5FnANbzg%40mail.gmail.com.