New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 595322 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 470608
Owner: ----
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

SVG <use> in doesn't work

Reported by vitaly.o...@gmail.com, Mar 16 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56

Example URL:

Steps to reproduce the problem:
http://css.yoksel.ru/assets/demo/svg-in-firefox/svg-has-base.html

What is the expected behavior?

What went wrong?
The <use> element has 0 × 0 px size and icons are not displayed.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes 48 version

Does this work in other browsers? Yes 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: OS X 10.11
Flash Version: 

Sometimes it works on 50 version
 

Comment 2 by f...@opera.com, Mar 16 2016

Components: -Blink Blink>SVG

Comment 3 by f...@opera.com, Mar 16 2016

This looks like  issue 470608  - I don't really see how adding <base> would not have any effect. What happens here is that the xlink:href on the <use> resolves against the base URL of the document (as specified by <base> after it has been inserted.) So the possible "bug" is if cloneNode(true) is expected to not re-resolve any URLs in attributes - but AFAIK that's not specified.

Comment 4 by f...@opera.com, Mar 16 2016

Labels: -OS-Mac OS-All

Comment 5 by pdr@chromium.org, Mar 16 2016

Labels: Needs-Bisect Needs-TestConfirmation
Lets see if a bisect shows anything interesting.

Comment 7 by pdr@chromium.org, Mar 16 2016

Cc: schenney@chromium.org
Labels: -Pri-2 -Needs-TestConfirmation -Needs-Bisect Hotlist-GoogleApps Pri-1
Status: Available (was: Unconfirmed)
Thanks blois. This was also reported by a google team in (internal bug link) go/b595322.

@Schenney, do you have time to take a look at this?

Comment 8 by blois@google.com, Mar 17 2016

Also note that this also occurs if there's not an explicit <base> tag, but if the document is loaded via setting iframe.srcdoc.

Comment 9 by f...@opera.com, Mar 17 2016

For 'srcdoc', the base URL is the base URL of the iframe element's node document (or "the document base URL of the Document's browsing context's browsing context container's node document" per spec lingo...) So it's the same issue.

https://html.spec.whatwg.org/#document-base-url

Comment 10 by f...@opera.com, Mar 21 2016

Labels: -Pri-1 Pri-2
(Same prio as  issue 470608 )

Comment 11 by f...@opera.com, Apr 1 2016

Mergedinto: 470608
Status: Duplicate (was: Available)
Labels: -Hotlist-GoogleApps Hotlist-Partner-GSuite

Sign in to add a comment