Bug 249803 - Fix css/css-typed-om/the-stylepropertymap/properties/stroke-width.html WPT test
Summary: Fix css/css-typed-om/the-stylepropertymap/properties/stroke-width.html WPT test
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 175733
  Show dependency treegraph
 
Reported: 2022-12-22 13:20 PST by Chris Dumez
Modified: 2022-12-22 17:14 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>