Re: [w3c/webcomponents] How should various document internal references work when SVG is being used in shadow DOM (#179)

It is still unclear to me whether people want <svg:use xlink:href="#test"/> inside shadow DOM to be able to (A) refer test element in light DOM, or (B) test element in shadow DOM, or (C) both?

https://github.com/w3c/webcomponents/issues/179#issuecomment-392605203 seems to hint both, so that id reference could be either within a shadow DOM, or between shadow DOM and and ancestor shadow DOM, or shadow DOM and light DOM. That would be very strange and if one implements component and has on purpose unresolved idref there (for example temporarily while some script is building the idref target), such shadow DOM idref could magically refer outside of shadow DOM.
And also, other idrefs don't work that way.

http://mozilla.pettay.fi/moztests/svg_shadow.html
Chrome shows red circle in first one, Nightly in second one, and I was told Safari doesn't show a red circle at all.

-- 
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-409874839

Received on Thursday, 2 August 2018 10:03:05 UTC