Bug 249582

Summary: Update CSS-Typed-OM tests to more consistently add range checks for properties not allowing negative values
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/37579
Bug Depends on:    
Bug Blocks: 175733    

Description Chris Dumez 2022-12-19 09:15:22 PST
Update CSS-Typed-OM tests to more consistently add range checks for properties not allowing negative values:
- animation-duration
https://w3c.github.io/csswg-drafts/css-animations/#animation-duration

- animation-iteration-count
https://w3c.github.io/csswg-drafts/css-animations/#animation-iteration-count
https://w3c.github.io/csswg-drafts/css-animations/#typedef-single-animation-iteration-count

- background-size
https://w3c.github.io/csswg-drafts/css-backgrounds/#the-background-size
https://w3c.github.io/csswg-drafts/css-backgrounds/#typedef-bg-size

- border-image-outset
https://w3c.github.io/csswg-drafts/css-backgrounds/#the-border-image-outset

- border-image-slice
https://w3c.github.io/csswg-drafts/css-backgrounds/#border-image-slice

- border-image-width
https://w3c.github.io/csswg-drafts/css-backgrounds/#border-image-width

- border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius
https://w3c.github.io/csswg-drafts/css-backgrounds/#border-radius

- font-weight
https://w3c.github.io/csswg-drafts/css-fonts/#font-weight-prop
https://w3c.github.io/csswg-drafts/css-fonts/#font-weight-absolute-values

- grid-auto-columns, grid-auto-rows
https://w3c.github.io/csswg-drafts/css-grid/#auto-tracks
https://w3c.github.io/csswg-drafts/css-grid/#typedef-track-size
https://w3c.github.io/csswg-drafts/css-grid/#typedef-track-breadth

- padding-block-start, padding-block-end, padding-inline-start, padding-inline-end
https://w3c.github.io/csswg-drafts/css-logical/#padding-properties
https://w3c.github.io/csswg-drafts/css-box-4/#propdef-padding-top

- border-block-start-width, border-block-end-width, border-inline-start-width, border-inline-end-width
https://w3c.github.io/csswg-drafts/css-logical/#border-width
https://w3c.github.io/csswg-drafts/css-backgrounds-3/#propdef-border-top-width
https://w3c.github.io/csswg-drafts/css-backgrounds-3/#typedef-line-width

- scroll-padding-top, scroll-padding-right, scroll-padding-bottom, scroll-padding-left
https://w3c.github.io/csswg-drafts/css-scroll-snap/#padding-longhands-physical

- scroll-padding-inline-start, scroll-padding-block-start, scroll-padding-inline-end, scroll-padding-block-end
https://w3c.github.io/csswg-drafts/css-scroll-snap/#padding-longhands-logical

- stroke-miterlimit
https://svgwg.org/svg2-draft/painting.html#StrokeMiterlimitProperty
Comment 1 Chris Dumez 2022-12-19 09:16:52 PST
Pull request: https://github.com/WebKit/WebKit/pull/7848
Comment 2 EWS 2022-12-19 15:08:06 PST
Committed 258100@main (21f9d871d453): <https://commits.webkit.org/258100@main>

Reviewed commits have been landed. Closing PR #7848 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-19 15:09:18 PST
<rdar://problem/103532789>