Ignore:
Timestamp:
Jan 4, 2022, 11:03:15 PM (3 years ago)
Author:
[email protected]
Message:

WPT test css/css-transitions/parsing/transition-shorthand.html has failures
https://bugs.webkit.org/show_bug.cgi?id=234856

Reviewed by Dean Jackson.

LayoutTests/imported/w3c:

Mark WPT progressions, all tests in css/css-transitions/parsing/transition-shorthand.html now pass.

  • web-platform-tests/css/css-transitions/parsing/transition-shorthand-expected.txt:

Source/WebCore:

Parse the "transition" shorthand the same way we parse the "animation" shorthand
and teach ComputedStyleExtractor::addValueForAnimationPropertyToList() about
"transition-property" so that it correctly returns a CSSValue for it.

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::addValueForAnimationPropertyToList):

  • css/parser/CSSPropertyParser.cpp:

(WebCore::CSSPropertyParser::consumeAnimationShorthand):

LayoutTests:

This historical test transitions/transitions-parsing.html is wrong and WPT has exhaustive
coverage for parsing of transition properties, so let's remove it.

Rebaselining some other tests.

  • fast/css/shorthand-mismatched-list-crash-expected.txt:
  • fast/css/shorthand-mismatched-list-crash.html:
  • fast/css/transform-inline-style-expected.txt:
  • fast/css/transform-inline-style-remove-expected.txt:
  • transitions/transitions-parsing-expected.txt: Removed.
  • transitions/transitions-parsing.html: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r287537 r287602  
    14641464    else if (property == CSSPropertyAnimationName)
    14651465        list.append(valueForAnimationName(animation ? animation->name() : Animation::initialName()));
    1466     else if (property == CSSPropertyAnimationTimingFunction || property == CSSPropertyTransitionTimingFunction) {
     1466    else if (property == CSSPropertyTransitionProperty) {
     1467        if (animation)
     1468            list.append(createTransitionPropertyValue(*animation));
     1469        else
     1470            list.append(CSSValuePool::singleton().createIdentifierValue(CSSValueAll));
     1471    } else if (property == CSSPropertyAnimationTimingFunction || property == CSSPropertyTransitionTimingFunction) {
    14671472        if (animation)
    14681473            list.append(valueForAnimationTimingFunction(*animation->timingFunction()));
Note: See TracChangeset for help on using the changeset viewer.