WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
110959
SVG Deep clone is broken
https://bugs.webkit.org/show_bug.cgi?id=110959
Summary
SVG Deep clone is broken
Gaurav
Reported
2013-02-27 01:49:35 PST
SVG Deep clone is not working for fill/stroke. 1.) Apply fill/stroke style to a SVG path using javascript as a URL of defs. 2.) Clone the svg node, and append to another div. Actual Results: Cloned svg node does not render fill/stroke Expected Results: Cloned svg node render fill/stroke Build Date & Platform:
r144147
for Mac Additional Information: This was working with:
r134433
for Mac OS X
r135421
.dmg">http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-
r135421
.dmg Started failing from :
r135421
for Mac OS X
r134433
.dmg">http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-
r134433
.dmg
Attachments
Sample HTML with problem
(1.55 KB, text/html)
2013-02-27 01:51 PST
,
Gaurav
no flags
Details
Minimized test.
(1.10 KB, text/html)
2013-02-27 06:20 PST
,
Florin Malita
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Gaurav
Comment 1
2013-02-27 01:51:02 PST
Created
attachment 190469
[details]
Sample HTML with problem
Florin Malita
Comment 2
2013-02-27 06:20:49 PST
Created
attachment 190505
[details]
Minimized test. An observation: only dynamically added fragment URI *properties* are discarded (style.fill = 'url(#gr)'). If attributes are used instead (rect.setAttribute('fill', 'url(#gr)')) or if the value is not an URI fragment (style.stroke = 'red') or if the property is statically present on the original element, everything works as expected.
Brent Fulgham
Comment 3
2022-07-15 16:08:25 PDT
Works in Chrome and Firefox, fails in Safari.
Radar WebKit Bug Importer
Comment 4
2022-07-15 16:08:46 PDT
<
rdar://problem/97099384
>
Ahmad Saleem
Comment 5
2023-07-13 07:03:30 PDT
@Brent - Safari 16.5.1 seems to render both tests same as Chrome Canary 117 and Firefox Nightly 117. Do you have broken behavior screenshot or it got fixed with Safari 16.4 major update?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug