Changeset 144644 in webkit


Ignore:
Timestamp:
Mar 4, 2013 10:49:29 AM (11 years ago)
Author:
alexis@webkit.org
Message:

transition-property property and transition shorthand property doesn't accept "all, all".
https://bugs.webkit.org/show_bug.cgi?id=111201

Reviewed by Simon Fraser.

Source/WebCore:

Relax the parsing of transition-property to allow all, all as a value.
It is not very useful per say but it is possible by the spec and we
align with Firefox, IE and Opera.

Test: LayoutTests/transitions/transitions-parsing.html

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseAnimationProperty):

LayoutTests:

Updated the tests to cover the bug.

  • transitions/transitions-parsing-expected.txt:
  • transitions/transitions-parsing.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r144639 r144644  
     12013-03-04  Alexis Menard  <alexis@webkit.org>
     2
     3        transition-property property and transition shorthand property doesn't accept "all, all".
     4        https://bugs.webkit.org/show_bug.cgi?id=111201
     5
     6        Reviewed by Simon Fraser.
     7
     8        Updated the tests to cover the bug.
     9
     10        * transitions/transitions-parsing-expected.txt:
     11        * transitions/transitions-parsing.html:
     12
    1132013-03-04  Ian Vollick  <vollick@chromium.org>
    214
  • trunk/LayoutTests/transitions/transitions-parsing-expected.txt

    r144626 r144644  
    1616PASS computedStyle.transitionProperty is 'all'
    1717PASS style.webkitTransitionProperty is 'all'
     18PASS computedStyle.webkitTransitionProperty is 'all'
     19PASS style.transitionProperty is 'all, all'
     20PASS computedStyle.transitionProperty is 'all'
     21PASS style.webkitTransitionProperty is 'all, all'
    1822PASS computedStyle.webkitTransitionProperty is 'all'
    1923PASS style.transitionProperty is 'background-position'
     
    4246PASS computedStyle.webkitTransitionProperty is 'font-size, all, color'
    4347Invalid transition-property values.
    44 PASS style.transitionProperty is ''
    45 PASS computedStyle.transitionProperty is 'all'
    46 PASS style.webkitTransitionProperty is ''
    47 PASS computedStyle.webkitTransitionProperty is 'all'
    4848PASS style.transitionProperty is ''
    4949PASS computedStyle.transitionProperty is 'all'
     
    396396PASS computedStyle.webkitTransitionDelay is '10s, 20s'
    397397PASS checkTransitionShorthandValue() is true
     398PASS style.transition is 'all, all'
     399PASS computedStyle.transition is 'all 0s ease 0s'
     400PASS style.webkitTransition is 'all, all'
     401PASS computedStyle.webkitTransition is 'all 0s ease 0s'
     402PASS style.transition is 'all 20s ease-in 10s, all 20s ease-out'
     403PASS computedStyle.transition is 'all 20s ease-out 0s'
     404PASS style.webkitTransition is 'all 20s ease-in 10s, all 20s ease-out'
     405PASS computedStyle.webkitTransition is 'all 20s ease-out 0s'
    398406PASS style.transition is 'opacity 20s ease-in 10s, all 20s ease-out'
    399407PASS computedStyle.transition is 'opacity 20s ease-in 10s, all 20s ease-out 0s'
     
    459467PASS style.webkitTransition is ''
    460468PASS computedStyle.webkitTransition is 'all 0s ease 0s'
    461 PASS style.transition is ''
    462 PASS computedStyle.transition is 'all 0s ease 0s'
    463 PASS style.webkitTransition is ''
    464 PASS computedStyle.webkitTransition is 'all 0s ease 0s'
    465469PASS successfullyParsed is true
    466470
  • trunk/LayoutTests/transitions/transitions-parsing.html

    r144626 r144644  
    4444shouldBe("computedStyle.webkitTransitionProperty", "'all'");
    4545
     46style.transitionProperty = "all, all";
     47shouldBe("style.transitionProperty", "'all, all'");
     48shouldBe("computedStyle.transitionProperty", "'all'");
     49shouldBe("style.webkitTransitionProperty", "'all, all'");
     50shouldBe("computedStyle.webkitTransitionProperty", "'all'");
     51
    4652style.transitionProperty = "background-position";
    4753shouldBe("style.transitionProperty", "'background-position'");
     
    156162
    157163style.transitionProperty = "none, width";
    158 shouldBe("style.transitionProperty", "''");
    159 shouldBe("computedStyle.transitionProperty", "'all'");
    160 shouldBe("style.webkitTransitionProperty", "''");
    161 shouldBe("computedStyle.webkitTransitionProperty", "'all'");
    162 
    163 style.transitionProperty = "all, all";
    164164shouldBe("style.transitionProperty", "''");
    165165shouldBe("computedStyle.transitionProperty", "'all'");
     
    624624shouldBe("checkTransitionShorthandValue()", "true");
    625625
     626style.transition = "all, all";
     627shouldBe("style.transition", "'all, all'");
     628shouldBe("computedStyle.transition", "'all 0s ease 0s'");
     629shouldBe("style.webkitTransition", "'all, all'");
     630shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'");
     631
     632style.transition = "all 20s 10s ease-in, all ease-out 20s";
     633shouldBe("style.transition", "'all 20s ease-in 10s, all 20s ease-out'");
     634shouldBe("computedStyle.transition", "'all 20s ease-out 0s'");
     635shouldBe("style.webkitTransition", "'all 20s ease-in 10s, all 20s ease-out'");
     636shouldBe("computedStyle.webkitTransition", "'all 20s ease-out 0s'");
     637
    626638style.transition = "ease-in opacity 20s 10s, all ease-out 20s";
    627639shouldBe("style.transition", "'opacity 20s ease-in 10s, all 20s ease-out'");
     
    719731shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'");
    720732
    721 style.transition = "all, all";
    722 shouldBe("style.transition", "''");
    723 shouldBe("computedStyle.transition", "'all 0s ease 0s'");
    724 shouldBe("style.webkitTransition", "''");
    725 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'");
    726 
    727733document.body.removeChild(testContainer);
    728734</script>
  • trunk/Source/WebCore/ChangeLog

    r144642 r144644  
     12013-03-04  Alexis Menard  <alexis@webkit.org>
     2
     3        transition-property property and transition shorthand property doesn't accept "all, all".
     4        https://bugs.webkit.org/show_bug.cgi?id=111201
     5
     6        Reviewed by Simon Fraser.
     7
     8        Relax the parsing of transition-property to allow all, all as a value.
     9        It is not very useful per say but it is possible by the spec and we
     10        align with Firefox, IE and Opera.
     11
     12        Test: LayoutTests/transitions/transitions-parsing.html
     13
     14        * css/CSSParser.cpp:
     15        (WebCore::CSSParser::parseAnimationProperty):
     16
    1172013-03-04  Min Qin  <qinmin@chromium.org>
    218
  • trunk/Source/WebCore/css/CSSParser.cpp

    r144626 r144644  
    44464446        return cssValuePool().createIdentifierValue(result);
    44474447    if (equalIgnoringCase(value, "all")) {
    4448         if (context.hasSeenAnimationPropertyKeyword())
    4449             context.commitAnimationPropertyKeyword();
    44504448        context.sawAnimationPropertyKeyword();
    44514449        return cssValuePool().createIdentifierValue(CSSValueAll);
Note: See TracChangeset for help on using the changeset viewer.