Bug 136128 - SVG <use> doesn't work with a <g> if the <g> is defined later in document
Summary: SVG <use> doesn't work with a <g> if the <g> is defined later in document
Status: RESOLVED DUPLICATE of bug 139451
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-08-21 10:25 PDT by Dean Jackson
Modified: 2014-12-12 12:59 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2014-08-21 10:25:19 PDT
From https://code.google.com/p/chromium/issues/detail?id=349175

Example URL:
http://codepen.io/chriscoyier/pen/bErma

Steps to reproduce the problem:
1. Define an inline <svg> with a <use> element with an xlink:href attribute that points to an id of a <g> element e.g. #shape
2. Define that <g> element with matching id later in the document
3. The svg with <use> will not display it. 

What is the expected behavior?
The <svg> should display it. It does in Firefox and Opera(presto).

It DOES work if you reference the id of a <path>

What went wrong?
SVG <use> doesn't work with a <g> if the <g> is definied later in document.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes
Comment 1 Radar WebKit Bug Importer 2014-08-21 10:26:51 PDT
<rdar://problem/18090228>
Comment 2 Tim Horton 2014-12-03 15:49:12 PST

*** This bug has been marked as a duplicate of bug 105257 ***
Comment 3 Said Abou-Hallawa 2014-12-12 12:59:42 PST

*** This bug has been marked as a duplicate of bug 139451 ***