Bug 249800

Summary: [CSS-Typed-OM] `transition-duration` property shouldn't allow 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   
Bug Depends on:    
Bug Blocks: 175733    

Description Chris Dumez 2022-12-22 13:05:03 PST
`transition-duration` property shouldn't allow negative values, as per:
- https://w3c.github.io/csswg-drafts/css-transitions/#transition-duration-property

This means that StylePropertyMap.set() should wrap the value in a `calc()` when negative, and that the computed value should be clamped to [0, inf].
Comment 1 Chris Dumez 2022-12-22 13:06:45 PST
Pull request: https://github.com/WebKit/WebKit/pull/8016
Comment 2 EWS 2022-12-22 17:14:45 PST
merge-queue failed to commit PR to repository. To retry, remove any blocking labels and re-apply merge-queue label
Comment 3 EWS 2022-12-23 09:43:24 PST
Committed 258295@main (ab21f8049d34): <https://commits.webkit.org/258295@main>

Reviewed commits have been landed. Closing PR #8016 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2022-12-23 09:44:16 PST
<rdar://problem/103672274>