Changeset 287822 in webkit


Ignore:
Timestamp:
Jan 9, 2022 10:13:26 AM (6 months ago)
Author:
graouts@webkit.org
Message:

translate() function in transform property should remove trailing 0 value when parsing
https://bugs.webkit.org/show_bug.cgi?id=235016

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

Mark WPT progression.

  • web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt:

Source/WebCore:

  • css/parser/CSSPropertyParser.cpp:

(WebCore::consumeTransformValue):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r287820 r287822  
     12022-01-09  Antoine Quint  <graouts@webkit.org>
     2
     3        translate() function in transform property should remove trailing 0 value when parsing
     4        https://bugs.webkit.org/show_bug.cgi?id=235016
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Mark WPT progression.
     9
     10        * web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt:
     11
    1122022-01-08  Antoine Quint  <graouts@webkit.org>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt

    r287820 r287822  
    2323PASS KeyframeEffect.getKeyframes() returns expected values for animations with CSS variables as keyframe values in a shorthand property
    2424PASS KeyframeEffect.getKeyframes() returns expected values for animations with a CSS variable which is overriden by the value in keyframe
    25 FAIL KeyframeEffect.getKeyframes() returns expected values for animations with only custom property in a keyframe assert_equals: value for 'transform' on Keyframe #0 should match expected "translate(100px)" but got "translate(100px, 0px)"
     25PASS KeyframeEffect.getKeyframes() returns expected values for animations with only custom property in a keyframe
    2626PASS KeyframeEffect.getKeyframes() reflects changes to @keyframes rules
    2727
  • trunk/Source/WebCore/ChangeLog

    r287821 r287822  
     12022-01-09  Antoine Quint  <graouts@webkit.org>
     2
     3        translate() function in transform property should remove trailing 0 value when parsing
     4        https://bugs.webkit.org/show_bug.cgi?id=235016
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * css/parser/CSSPropertyParser.cpp:
     9        (WebCore::consumeTransformValue):
     10
    1112022-01-09  Sam Weinig  <weinig@apple.com>
    212
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r287602 r287822  
    19391939            if (!parsedValue)
    19401940                return nullptr;
     1941            if (is<CSSPrimitiveValue>(parsedValue)) {
     1942                auto isZero = downcast<CSSPrimitiveValue>(*parsedValue).isZero();
     1943                if (isZero && *isZero)
     1944                    parsedValue = nullptr;
     1945            }
    19411946        }
    19421947        break;
Note: See TracChangeset for help on using the changeset viewer.