- From: Peter Mouland via GitHub <sysbot+gh@w3.org>
- Date: Wed, 15 Nov 2017 14:55:22 +0000
- To: public-svg-issues@w3.org
peter-mouland has just created a new issue for https://github.com/w3c/svgwg: == SVG2 spec means elements within a <use> tag can not be targeted for styling == **spec:** https://www.w3.org/TR/SVG2/struct.html#UseStyleInheritance Recently, I have tried to create a number of SVG's and reuse those SVG's within the same document via the <use> tag. These 're-used' svgs need to have different styles applied to them, and to the elements within. Within **SVG1** this worked as expected and you can see a CodePen Demo<sup><a href='#1'>1</a></sup> of this working with Chrome 62. This also works when using CSS custom properties (see CodePen demo<sup><a href='#2'>2</a></sup>) Within **SVG2**, no SVG's are viewable, as you can see when viewing the same demo on Firefox 56, which has implemented the SVG2 spec (See discussion<sup><a href='#3'>3</a></sup>). This is also no longer achievable using CSS Custom Props. Using the demo as an example for the SVG2 spec, is there a way I should be able to target and styles these elements when going via the <use> tag, or is this an area that requires some more thought? ### Links: - <a name="1">1</a> [CodePen Demo using multiple symbols](https://codepen.io/peter-mouland/pen/pdEMWZ/) - <a name="2">2</a>[CodePen Demo using CSS custom properties](https://codepen.io/peter-mouland/pen/MOpeJw?editors=1100) - <a name="3">3</a> [Bugzilla Firefox discussion](https://bugzilla.mozilla.org/show_bug.cgi?id=1415186): _not a bug, as per SVG2 spec_ - 4 [Chromium bug raised](https://bugs.chromium.org/p/chromium/issues/detail?id=785234#c2): _not a bug, as per v1 spec_ - 5 [Chromium SVG2 bug Raised](https://bugs.chromium.org/p/chromium/issues/detail?id=785246&can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified&groupby=&sort=) Please view or discuss this issue at https://github.com/w3c/svgwg/issues/367 using your GitHub account
Received on Wednesday, 15 November 2017 14:55:24 UTC