Closed
Bug 1352979
Opened 8 years ago
Closed 8 years ago
<use xlink:href> should not respect <base> for local references
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
DUPLICATE
of bug 1357432
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: rik, Unassigned)
References
Details
(Whiteboard: [webcompat])
Attachments
(1 file)
741 bytes,
text/html
|
Details |
Steps to reproduce: Open the testcase Actual result: Logo is invisible Expected result: Logo is displayed Works as expected: Chrome, Safari, IE 10 and 11 Works as actual: Firefox, Edge A lot of people are running into this issue and fixing by using absolute references: https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d2 I think <base> should not be used for local references aka #foo.
Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Please approach w3c first if you want things to change and get agreement on a specification update. The SVG specification currently says to generate an absolute URL https://www.w3.org/TR/SVG2/linking.html#processingURL-absolute says In contrast, a base element affects relative URLs in any SVG or HTML document, by altering the document base URL. so you'll need to get the SVG specification changed first.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Whiteboard: [webcompat]
Comment 2•8 years ago
|
||
Thanks Anthony for the report. The closest I find so far is * Document.baseURI getter doesn't return the parent document's base URL for iframes https://bugs.chromium.org/p/chromium/issues/detail?id=484930 I opened another issue on the Chromium project to see what would be the comments. https://bugs.chromium.org/p/chromium/issues/detail?id=707758 I checked in Blink (Opera), the use.baseURI is properly set on the element but is not used for deferencing the xlink:href
Comment 3•8 years ago
|
||
Test case showing the issue.
Reporter | ||
Comment 4•8 years ago
|
||
Robert: What's the best forum to bring up those issues?
Flags: needinfo?(longsonr)
Reporter | ||
Comment 6•8 years ago
|
||
Actually, that issue has already been brought up: "As defined in CSS Values and Units, a fragment-only URL in a style property must be treated as a same-document URL reference, regardless of the file in which the property was declared." https://github.com/w3c/svgwg/issues/61 https://github.com/w3c/svgwg/commit/f378b15b95841cb1297eda7b1a6a2ca2d549ee71 Reopening per spec.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 7•8 years ago
|
||
Yes and in addition, the issue was closed as WONTFIX on Chrome project because of Web Compatibility issues. https://bugs.chromium.org/p/chromium/issues/detail?id=707758#c3 > This was changed via issue 470608 after we had attempted to implement the Gecko behavior in issue 449027 and got push-back (possibly because this "broken" behavior had existed in WebKit for quite a while.) Given that Chrome, Safari, IE 10 and 11 works the same, I would be in favor of following the behavior of others.
Updated•8 years ago
|
Flags: webcompat?
Reporter | ||
Comment 8•8 years ago
|
||
It has been fixed in Edge.
Reporter | ||
Comment 9•8 years ago
|
||
Robert : Do you think this bug is easy enough to fix that it could be a mentored bug?
Flags: needinfo?(longsonr)
Comment 10•8 years ago
|
||
Seems to be the same issue as bug 1357432 which already has a patch. Maybe just dup to that one.
Flags: needinfo?(longsonr)
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•