Re: [svgwg] Need to better define what rules apply to an element in an <svg:use> subtree. (#504)

For reference, at https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS there is an example which is applying `:hover` rules to elements referenced by `<use>` elements.
I have just fixed that example, because it previously only used direct selectors (which I kept for now, as they worked in older versions of Firefox, but they may get removed), i.e. they matched the elements as if they were placed inside the `<use>` elements (see https://github.com/mdn/sprints/issues/1987).

From an author point of view, applying all rules as if the elements were not referenced via `<use>` elements is the expected behavior. It feels awkward when rules that normally apply to elements do not apply to them when they are referenced.

Sebastian

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

Received on Friday, 30 August 2019 00:05:21 UTC