Changeset 144644 in webkit
- Timestamp:
- Mar 4, 2013 10:49:29 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r144639 r144644 1 2013-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 1 13 2013-03-04 Ian Vollick <vollick@chromium.org> 2 14 -
trunk/LayoutTests/transitions/transitions-parsing-expected.txt
r144626 r144644 16 16 PASS computedStyle.transitionProperty is 'all' 17 17 PASS style.webkitTransitionProperty is 'all' 18 PASS computedStyle.webkitTransitionProperty is 'all' 19 PASS style.transitionProperty is 'all, all' 20 PASS computedStyle.transitionProperty is 'all' 21 PASS style.webkitTransitionProperty is 'all, all' 18 22 PASS computedStyle.webkitTransitionProperty is 'all' 19 23 PASS style.transitionProperty is 'background-position' … … 42 46 PASS computedStyle.webkitTransitionProperty is 'font-size, all, color' 43 47 Invalid 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'48 48 PASS style.transitionProperty is '' 49 49 PASS computedStyle.transitionProperty is 'all' … … 396 396 PASS computedStyle.webkitTransitionDelay is '10s, 20s' 397 397 PASS checkTransitionShorthandValue() is true 398 PASS style.transition is 'all, all' 399 PASS computedStyle.transition is 'all 0s ease 0s' 400 PASS style.webkitTransition is 'all, all' 401 PASS computedStyle.webkitTransition is 'all 0s ease 0s' 402 PASS style.transition is 'all 20s ease-in 10s, all 20s ease-out' 403 PASS computedStyle.transition is 'all 20s ease-out 0s' 404 PASS style.webkitTransition is 'all 20s ease-in 10s, all 20s ease-out' 405 PASS computedStyle.webkitTransition is 'all 20s ease-out 0s' 398 406 PASS style.transition is 'opacity 20s ease-in 10s, all 20s ease-out' 399 407 PASS computedStyle.transition is 'opacity 20s ease-in 10s, all 20s ease-out 0s' … … 459 467 PASS style.webkitTransition is '' 460 468 PASS 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'465 469 PASS successfullyParsed is true 466 470 -
trunk/LayoutTests/transitions/transitions-parsing.html
r144626 r144644 44 44 shouldBe("computedStyle.webkitTransitionProperty", "'all'"); 45 45 46 style.transitionProperty = "all, all"; 47 shouldBe("style.transitionProperty", "'all, all'"); 48 shouldBe("computedStyle.transitionProperty", "'all'"); 49 shouldBe("style.webkitTransitionProperty", "'all, all'"); 50 shouldBe("computedStyle.webkitTransitionProperty", "'all'"); 51 46 52 style.transitionProperty = "background-position"; 47 53 shouldBe("style.transitionProperty", "'background-position'"); … … 156 162 157 163 style.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";164 164 shouldBe("style.transitionProperty", "''"); 165 165 shouldBe("computedStyle.transitionProperty", "'all'"); … … 624 624 shouldBe("checkTransitionShorthandValue()", "true"); 625 625 626 style.transition = "all, all"; 627 shouldBe("style.transition", "'all, all'"); 628 shouldBe("computedStyle.transition", "'all 0s ease 0s'"); 629 shouldBe("style.webkitTransition", "'all, all'"); 630 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 631 632 style.transition = "all 20s 10s ease-in, all ease-out 20s"; 633 shouldBe("style.transition", "'all 20s ease-in 10s, all 20s ease-out'"); 634 shouldBe("computedStyle.transition", "'all 20s ease-out 0s'"); 635 shouldBe("style.webkitTransition", "'all 20s ease-in 10s, all 20s ease-out'"); 636 shouldBe("computedStyle.webkitTransition", "'all 20s ease-out 0s'"); 637 626 638 style.transition = "ease-in opacity 20s 10s, all ease-out 20s"; 627 639 shouldBe("style.transition", "'opacity 20s ease-in 10s, all 20s ease-out'"); … … 719 731 shouldBe("computedStyle.webkitTransition", "'all 0s ease 0s'"); 720 732 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 727 733 document.body.removeChild(testContainer); 728 734 </script> -
trunk/Source/WebCore/ChangeLog
r144642 r144644 1 2013-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 1 17 2013-03-04 Min Qin <qinmin@chromium.org> 2 18 -
trunk/Source/WebCore/css/CSSParser.cpp
r144626 r144644 4446 4446 return cssValuePool().createIdentifierValue(result); 4447 4447 if (equalIgnoringCase(value, "all")) { 4448 if (context.hasSeenAnimationPropertyKeyword())4449 context.commitAnimationPropertyKeyword();4450 4448 context.sawAnimationPropertyKeyword(); 4451 4449 return cssValuePool().createIdentifierValue(CSSValueAll);
Note: See TracChangeset
for help on using the changeset viewer.