[Webkit-unassigned] [Bug 133505] New: Changing the referred element of a SVGUseElement doesn't change the SVGUseElement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 4 01:03:18 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=133505
Summary: Changing the referred element of a SVGUseElement
doesn't change the SVGUseElement
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://jsfiddle.net/gonsfx/vFChe/
OS/Version: All
Status: NEW
Severity: Blocker
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: gonsfx at googlemail.com
CC: zimmermann at kde.org
For my work on an SVG-based online editor for photo products i have to frequently swap out elements that are referred to by SVGUseElements.
This does not work in any Webkit Versions i tried. On a contrary, Firefox and old Opera work fine.
Steps to Reproduce
1) Open http://jsfiddle.net/gonsfx/vFChe/
It includes an inline SVG with a SVGUseElement that references the id 'target' and a SVGGElement which is set to display: none.
An element with the id 'target' does not exist at the beginning.
2) Click SVG (grey background)
Upon clicking the SVG, a new SVGPathElement with random dimensions and an id attribute of 'target' is created and appended to the (invisible) SVGGElement.
Webkit correctly displays the SVGUseElement on the first click.
3) Click SVG again (grey background)
Upon clicking the SVG another time, the existing SVGPathElement is removed from the DOM and a new, randomly dimensioned one is appended to the (invisible) SVGGElement.
The SVGUseElement does not change.
Actual Results
SVGUseElement is updated/correctly drawn on the first click and doesn't change on any subsequent click.
Expected Results
SVGUseElement reflects the change of its referred Element on every click.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list