WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 274935
275842
SVG's path "d" property always returning "none" as getComputedStyle
https://bugs.webkit.org/show_bug.cgi?id=275842
Summary
SVG's path "d" property always returning "none" as getComputedStyle
Vlad Grecescu
Reported
2024-06-25 01:04:42 PDT
This is Safari as shipped in iOS Beta 18 - AppleWebKit/605.1.15 The "d" property for the SVG path element was previously not implemented in CSS / getComputedStyle. It is now half implemented and this is a serious problem - since it is now returning always "none" Reproducing: For example, this page
https://codepen.io/igrecesc/pen/yLWKxPd?editors=1010
used to display just "Computed style for d:" on Safari. In other browsers it might display `Computed style for d: path("M 0 0 L 100 0 L 100 100 L 0 100 Z")` which is the CSS equivalent of the attribute. Outcome: In Safari shipped with iOS 18 beta this always displays `Computed style for d: none` regardless of the path attribute value. Expected: undefined as before or path("... as a fix forward Impact: This prevents our SVG workflows from making a meaningful choice (before, it was easier to reason about an unimplemented feature). We cannot assume that "none" should be falling back to reading the attribute since one path attribute could be present and a CSS style could legitimately override that to be none. Links: The start of the implementation
https://commits.webkit.org/277297@main
as tracked here
https://bugs.webkit.org/show_bug.cgi?id=272446
Attachments
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2024-06-25 01:42:27 PDT
This is already addressed on ToT as the feature is now behind an off-by-default flag until I manage to fix the performance regression issue caused by it. The latest release of Safari Technology Preview (197) has the fix and this will make it in an upcoming iOS 18 Beta (perhaps already in the second seed that just came out?). *** This bug has been marked as a duplicate of
bug 274935
***
Vlad Grecescu
Comment 2
2024-06-25 04:01:51 PDT
Thanks for the quick answer! I downloaded the iOS 18 beta 2 and indeed it seems to be ok now, I'll follow up if something else is found wrong.
Darin Adler
Comment 3
2024-06-25 07:57:13 PDT
If we do re-enable the "d" property, I hope we do include the computed style implementation. I don’t know where we would keep track of that.
Antoine Quint
Comment 4
2024-06-25 08:05:37 PDT
Re-enabling would include everything, including the computed style.
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