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

Description Said Abou-Hallawa 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.
Comment 1 Dirk Schulze 2019-10-26 12:21:15 PDT
Seems like the test case is working now.
Comment 2 Ahmad Saleem 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!
Comment 3 Brent Fulgham 2022-07-18 11:51:37 PDT
Based on Ahmad's testing, closing as CONFIG CHANGED.
Comment 4 Alexey Proskuryakov 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.
Comment 5 Brent Fulgham 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.
Comment 6 Radar WebKit Bug Importer 2022-07-18 15:43:27 PDT
<rdar://problem/97224363>
Comment 7 Ahmad Saleem 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.