WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
192553
SVG transform is not removed properly when a style with a CSS transform becomes inactive
https://bugs.webkit.org/show_bug.cgi?id=192553
Summary
SVG transform is not removed properly when a style with a CSS transform becom...
kari.pihkala
Reported
2018-12-10 03:58:51 PST
Created
attachment 356954
[details]
webkit-transform-bug.svg test case Transforms for SVG elements are not reset when a style with a CSS transform becomes inactive. Steps to reproduce: 1. Open
https://codepen.io/anon/pen/QzwLyG?editors=1100
(or the attached test case which shows the same test) 2. Move the mouse over the blue box - it is scaled by 2. (using :hover style) 3. Move the mouse out of the blue box - the transform isn't set back to the initial non-scaled transform. This works in Firefox 63 and Chrome 71. The blue box returns to the initial non-scaled transform. The bug doesn't happen if the initial transform is given as a style in the stylesheet. The bug is visible only when setting the initial transform as an attribute. So, there seems to be something wrong how the transform attribute is handled. Tested on Safari Technology Preview Release 71 (Safari 12.1, WebKit 14607.1.15). At least Safari 12.0 and 11 have the same bug. Possibly related bugs (the SVG transform attribute has been promoted to a presentation attribute only recently): Transforms tracking bug
https://bugs.webkit.org/show_bug.cgi?id=15670
Harmonize HTML & SVG rendering
https://bugs.webkit.org/show_bug.cgi?id=90738
Merge CSS and SVG Transforms according to CSS3 Transforms
https://bugs.webkit.org/show_bug.cgi?id=70025
Master bug: Turn more SVG attributes to presentation attributes
https://bugs.webkit.org/show_bug.cgi?id=135045
Scaled SVG elements are leaving artifacts during animation
https://bugs.webkit.org/show_bug.cgi?id=177524
SVG transitions of transforms are not properly reset after the transition is removed
https://bugs.webkit.org/show_bug.cgi?id=183433
Attachments
webkit-transform-bug.svg test case
(391 bytes, image/svg+xml)
2018-12-10 03:58 PST
,
kari.pihkala
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
kari.pihkala
Comment 1
2018-12-10 04:18:35 PST
This codepen shows that the opacity, width and height presentation attributes work just fine in a similar situation. So, the issue seems to be specific to the transform attribute and property.
https://codepen.io/anon/pen/WLbeqd?editors=1100
Radar WebKit Bug Importer
Comment 2
2018-12-10 14:05:40 PST
<
rdar://problem/46607710
>
Ahmad Saleem
Comment 3
2023-01-14 06:17:19 PST
Attached Test case and test case from
Comment 01
seems to work fine in Safari 16.2 and Safari Technology Preview 161 and after leaving mouse out, the blue box return back to initial state. Appreciate if someone can confirm since I am not able to reproduce this. Thanks!
Karl Dubost
Comment 4
2023-01-15 17:47:13 PST
This is working for me too.
kari.pihkala
Comment 5
2023-02-10 01:48:44 PST
This is also working for me now. I tested Safari 16.3. Great!
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