[webkit-changes] [WebKit/WebKit] ab21f8: [CSS-Typed-OM] `transition-duration` property shou...

Chris Dumez noreply at github.com
Fri Dec 23 09:43:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab21f8049d3417478d88f55de3dcd783e7f06a42
      https://github.com/WebKit/WebKit/commit/ab21f8049d3417478d88f55de3dcd783e7f06a42
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-12-23 (Fri, 23 Dec 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration.html
    M Source/WebCore/css/typedom/CSSUnitValue.cpp

  Log Message:
  -----------
  [CSS-Typed-OM] `transition-duration` property shouldn't allow negative values
https://bugs.webkit.org/show_bug.cgi?id=249800

Reviewed by Simon Fraser.

`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].

* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/transition-duration.html:
* Source/WebCore/css/typedom/CSSUnitValue.cpp:
(WebCore::isValueOutOfRangeForProperty):

Canonical link: https://commits.webkit.org/258295@main




More information about the webkit-changes mailing list