Bug 249800 - [CSS-Typed-OM] `transition-duration` property shouldn't allow negative values
Summary: [CSS-Typed-OM] `transition-duration` property shouldn't allow negative values
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:05 PST by Chris Dumez
Modified: 2022-12-23 09:44 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: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>