Bug 249816

Summary: Fix css/css-typed-om/the-stylepropertymap/properties/scroll-padding.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/37660
Bug Depends on:    
Bug Blocks: 175733    

Description Chris Dumez 2022-12-22 15:08:42 PST
Fix css/css-typed-om/the-stylepropertymap/properties/scroll-padding.html WPT test to match the specification:
- https://w3c.github.io/csswg-drafts/css-scroll-snap/#padding-longhands-logical
- https://w3c.github.io/csswg-drafts/css-scroll-snap/#padding-longhands-physical

The test was expecting a -3.14% as computed value for one of the subtests. However, the specification indicates that negative values are not allowed.
The computed value should thus be clamped to 0%.
Comment 1 Chris Dumez 2022-12-22 15:10:17 PST
Pull request: https://github.com/WebKit/WebKit/pull/8027
Comment 2 EWS 2022-12-22 17:12:03 PST
Committed 258273@main (99f516e7d63b): <https://commits.webkit.org/258273@main>

Reviewed commits have been landed. Closing PR #8027 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-22 17:13:16 PST
<rdar://problem/103655472>