-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-value] Fragment URLs #274
Comments
I think this should be clarified by the SVG spec defining . |
@AmeliaBR has a massive PR (w3c/svgwg#206) waiting to be merged that totally rewrites the sections of SVG 2 that deal with the use element. We'll be discussing the PR this week during the telcon and will hopefully merge after that. You can see the built spec on this branch: This issue appears to be clarified there in the following text:
|
Yes, this is exactly the sort of situation I was considering when I added in that requirement. It will sometimes mean that the URL references points back to the external file instead of to another cloned element in the shadow tree as an author might expect, but the final result should be the same. @CJKu If you're working on the Gecko implementation, I would be glad to hear your feedback on the proposed new text. Do leave a comment on the PR (w3c/svgwg#206) if you can think of anything else that is undefined or problematic. |
Amelia, does that mean we can close this issue here? :) ~fantasai |
Yes, I think we've got it covered. Close away, @fantasai ! Relevant paragraph of the SVG 2 editor's draft, soon to be in CR:
|
Excellent! |
Should be "resource", not "file". |
https://lists.w3.org/Archives/Public/www-style/2016Jul/0025.html
While implementing fragment urls[1] inside gecko, I have come across a
behavior which can not find definition on the spec.
When a SVG use element[2] references to a graphic element(located in
another document) with a local-ref url. By referring behavior on most
modern browsers, I think the correct behavior is to resolve the local-ref
url by base of the referenced document.
Here is an example: ref-external.svg uses a rect in ref-resource.svg
ref-external.svg
ref-resource.svg
While rendering ref-external.svg, I would expect(can be wrong) seeing a
red rectangle on the screen, since url(#radialGrad1) will be resolved as
http://.../ref-source.svg#grad1
not
http://.../ref-external.svg#grad1.
Have clear definition of how resolving local-ref of
an anonymous clones element is super useful.
[1] https://drafts.csswg.org/css-values/#local-urls
[2] https://svgwg.org/svg2-draft/struct.html#UseElement
The text was updated successfully, but these errors were encountered: