[Webkit-unassigned] [Bug 110586] New: $0.style.fill and $0.style.stroke are setting url() values incorrectly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 22 04:32:50 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=110586
Summary: $0.style.fill and $0.style.stroke are setting url()
values incorrectly
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jarek at kiwi-themes.com
CC: zimmermann at kde.org
If you set IRI reference (e.g. "url(#someGradientID") as value of element.style.fill or element.style.stroke then the 'url(' prefix and ')' postfix are dropped thus making the resulting inline style invalid.
How to reproduce this bug in console ($0 can be any SVG element):
> $0.style.fill = "url(#someID)"
>> "url(#someID)"
> $0.style.fill
>> "#someID" // wrong! should be "url(#someID)"
> $0.getAttribute("fill")
>> "fill: #someID;" // wrong! should be "fill: url(#someID);"
--
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