Re: [svgwg] Style inheritance for <use> element referencing external SVG (#1030)

I'm confused by the Firefox bug comments. I feel like there's some confusion going on there, as there was mention both of Shadow DOM and of `<template>`, but those are separate features.

If Firefox is using Shadow DOM for `<use>`, then styles defined in the outer page shouldn't be able to target anything in the shadow; *that's how shadow DOM works*. All you can do is inherit *into* a shadow, you can't target it with selectors (outside of some limited things like `::part()`).

It kinda sounds like Firefox might instead be using the `<template>`-cloning ability (which people use *with* shadow DOM to quickly populate the shadow with elements, but which is not inherently tied to shadow DOM), so they're producing normal light DOM. That would explain why elements in the `<use>` are targetable with light-DOM selectors.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1030#issuecomment-3524589385 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 13 November 2025 00:52:32 UTC