Bug 191804 - stroke-width r rx ry should not accept negative values
Summary: stroke-width r rx ry should not accept negative values
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-17 02:50 PST by Eric Willigers
Modified: 2023-10-17 12:50 PDT (History)
7 users (show)

See Also:


Attachments
WebKit ToT matches Firefox Nightly 113 but differs from Chrome Canary 113 (640.25 KB, image/png)
2023-03-20 10:28 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Willigers 2018-11-17 02:50:43 PST
Safari currently accepts negative values for these properties. Test page: https://jsfiddle.net/ericwilligers/zmL2w50r/

https://svgwg.org/svg2-draft/painting.html#StrokeWidth
A negative value is invalid.

https://svgwg.org/svg2-draft/geometry.html#R
A negative value for r must be treated as an illegal value.
A negative value for rx must be treated as an illegal value.
A negative value for ry must be treated as an illegal value.
Comment 1 Brent Fulgham 2022-07-01 16:22:58 PDT
Safari continues to produce incorrect output here.
Comment 2 Radar WebKit Bug Importer 2022-07-01 16:23:07 PDT
<rdar://problem/96320394>
Comment 3 Ahmad Saleem 2023-03-20 10:28:49 PDT
Created attachment 465523 [details]
WebKit ToT matches Firefox Nightly 113 but differs from Chrome Canary 113

Just wanted to share updated results. Thanks!
Comment 4 Rob Buis 2023-10-17 12:50:39 PDT
The original bug seems to no longer exist.