Bug 200439

Summary: Invalid parsing for 'cx' and 'cy' attribute via style change
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: REOPENED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, krit, mmaxfield, rniwa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=151468
Bug Depends on:    
Bug Blocks: 200143    
Attachments:
Description Flags
test case none

Said Abou-Hallawa
Reported 2019-08-05 10:11:31 PDT
Created attachment 375532 [details] test case Open the attached test case. Expected: A green circle drawn at (0, 0). Result: A green circle drawn at (100, 100). The 'cx' and 'cy' attributes are changed through changing the style of the circle element. Because the strings are incorrect css values, the expectation is no change in the values of these attributes should happen.
Attachments
test case (203 bytes, image/svg+xml)
2019-08-05 10:11 PDT, Said Abou-Hallawa
no flags
Dirk Schulze
Comment 1 2019-10-26 12:21:15 PDT
Seems like the test case is working now.
Ahmad Saleem
Comment 2 2022-07-18 10:53:40 PDT
I am unable to reproduce this bug in Safari 15.5 on macOS 12.4 and "green" circle is drawn on (100,100) and it is confirmed by Comment 01 as well. From other browser perspective, Chrome Canary 105 matches with Safari behavior and draw it at (100,100) while Firefox Nightly 104 draws it at (0,0). Thanks!
Brent Fulgham
Comment 3 2022-07-18 11:51:37 PDT
Based on Ahmad's testing, closing as CONFIG CHANGED.
Alexey Proskuryakov
Comment 4 2022-07-18 14:45:31 PDT
Aren't we saying that this is not to be fixed, and if so, why? Per the report, (0, 0) is expected, but we are getting (100, 100), same as in 2019. This looks similar to bug 94352.
Brent Fulgham
Comment 5 2022-07-18 15:43:17 PDT
REOPEN based on Alexey's comment. I didn't realize Said filed this against a spec -- I assumed matching Chrome was sufficient for compatibility.
Radar WebKit Bug Importer
Comment 6 2022-07-18 15:43:27 PDT
Ahmad Saleem
Comment 7 2024-02-20 18:03:26 PST
NOTE - we are passing all tests here: https://wpt.fyi/results/svg/geometry/parsing?label=master&label=experimental&aligned&q=invalid and matching with Firefox Nightly, which is same the case with this test case. Safari & Firefox are matching, do we expect to match Chrome here. If yes, then I think we might need to update tests as well.
Note You need to log in before you can comment on or make changes to this bug.