Bug 249803

Summary: Fix css/css-typed-om/the-stylepropertymap/properties/stroke-width.html WPT test
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: CSSAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/37654
Bug Depends on:    
Bug Blocks: 175733    

Description Chris Dumez 2022-12-22 13:20:31 PST
Per the specification, `stroke-width`'s computed value should be positive:
- https://svgwg.org/svg2-draft/painting.html#StrokeWidth

However, the test was setting `stroke-width` to "calc(-3.14%)" and expecting "-3.14s" as computed value. With clamping, the computed value should be "0%" in this case.
Comment 1 Chris Dumez 2022-12-22 13:22:03 PST
Pull request: https://github.com/WebKit/WebKit/pull/8018
Comment 2 EWS 2022-12-22 17:13:52 PST
Committed 258274@main (18173dd49a5f): <https://commits.webkit.org/258274@main>

Reviewed commits have been landed. Closing PR #8018 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-22 17:14:18 PST
<rdar://problem/103655492>