- From: Sebastian Müller <notifications@github.com>
- Date: Wed, 09 Aug 2017 06:52:45 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/webcomponents/issues/179/321169405@github.com>
@rniwa - while I agree that it is not defined how it should work (and I also believe that probably the best solution would be to not make it work at all) to reference a fragment inside another document buried in a shadow dom or inside another shadow tree in the same dom, my concern right now is that the Safari/Webkit team claims that the SVG spec is not even clear enough about *local* fragments inside the *same* shadow tree dom. Please correct me (and them) if I'm wrong, but IMHO at least this should work, or shouldn't it: anywhere on the page (be it inside a closed, or open shadow dom tree or at the top-level) this must work: ``` <svg width="10cm" height="3cm" viewBox="0 0 100 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <rect id="MyRect" width="60" height="10"/> </defs> <use x="20" y="10" xlink:href="#MyRect" /> </svg> ``` (slightly stripped down version from here https://www.w3.org/TR/SVG/struct.html#UseElement ) However according to them "because of the unclear spec" this svg does _not_ work inside Safari in a shadow DOM. This makes all of our SVGs break if they are used inside a shadow dom in Safari, and thus all of our customers cannot use shadow dom in their products if they need to target Safari and I would greatly appreciate it if you could somehow make a clear statement that at least _this_ use-case must work according to the spec so that they will adjust their current implementation. Thank you! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/179#issuecomment-321169405
Received on Wednesday, 9 August 2017 06:53:37 UTC