Changeset 251658 in webkit
- Timestamp:
- Oct 28, 2019 10:01:55 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r251656 r251658 1 2019-10-28 Antoine Quint <graouts@apple.com> 2 3 CSS Transitions and CSS Animations properties should treat unitless 0 as an invalid value for times 4 https://bugs.webkit.org/show_bug.cgi?id=203484 5 6 Reviewed by Antti Koivisto. 7 8 Use 0s instead of 0 in places where unitless times were used but shouldn't have been. 9 10 * animations/fill-mode-forwards-zero-duration.html: 11 * compositing/animation/keyframe-order.html: 12 * css1/units/zero-duration-without-units.html: 13 * legacy-animation-engine/animations/fill-mode-forwards-zero-duration.html: 14 * legacy-animation-engine/compositing/animation/keyframe-order.html: 15 * legacy-animation-engine/css1/units/zero-duration-without-units.html: 16 * legacy-animation-engine/transitions/zero-duration-in-list.html: 17 * legacy-animation-engine/transitions/zero-duration-without-units.html: 18 * transitions/zero-duration-in-list.html: 19 * transitions/zero-duration-without-units.html: 20 * webanimations/css-animations-expected.txt: 21 * webanimations/css-animations.html: 22 1 23 2019-10-28 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 24 -
trunk/LayoutTests/animations/fill-mode-forwards-zero-duration.html
r236541 r251658 10 10 width: 100px; 11 11 background-color: blue; 12 animation: anim1 0 2s linear forwards;12 animation: anim1 0s 2s linear forwards; 13 13 } 14 14 @keyframes anim1 { -
trunk/LayoutTests/compositing/animation/keyframe-order.html
r170691 r251658 22 22 23 23 .spinner.animating { 24 -webkit-animation: imageSpin 999999999s linear 0 infinite24 -webkit-animation: imageSpin 999999999s linear 0s infinite 25 25 } 26 26 -
trunk/LayoutTests/css1/units/zero-duration-without-units.html
r119990 r251658 13 13 -webkit-transition-property: top, left; 14 14 -webkit-transition-duration: 1s; 15 -webkit-transition-duration: 0 ;15 -webkit-transition-duration: 0s; 16 16 -webkit-transition-timing-function: linear; 17 17 } -
trunk/LayoutTests/imported/w3c/ChangeLog
r251657 r251658 1 2019-10-28 Antoine Quint <graouts@apple.com> 2 3 CSS Transitions and CSS Animations properties should treat unitless 0 as an invalid value for times 4 https://bugs.webkit.org/show_bug.cgi?id=203484 5 6 Reviewed by Antti Koivisto. 7 8 Mark WPT progressions. 9 10 * web-platform-tests/css/css-animations/parsing/animation-delay-invalid-expected.txt: 11 * web-platform-tests/css/css-animations/parsing/animation-duration-invalid-expected.txt: 12 * web-platform-tests/css/css-transitions/parsing/transition-delay-invalid-expected.txt: 13 1 14 2019-10-27 Antoine Quint <graouts@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-delay-invalid-expected.txt
r251591 r251658 1 1 2 2 PASS e.style['animation-delay'] = "infinite" should not set the property value 3 FAIL e.style['animation-delay'] = "0" should not set the property value assert_equals: expected "" but got "0ms" 3 PASS e.style['animation-delay'] = "0" should not set the property value 4 4 PASS e.style['animation-delay'] = "1s 2s" should not set the property value 5 5 PASS e.style['animation-delay'] = "initial, -3s" should not set the property value -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-duration-invalid-expected.txt
r251591 r251658 1 1 2 2 PASS e.style['animation-duration'] = "-3s" should not set the property value 3 FAIL e.style['animation-duration'] = "0" should not set the property value assert_equals: expected "" but got "0ms" 3 PASS e.style['animation-duration'] = "0" should not set the property value 4 4 PASS e.style['animation-duration'] = "infinite" should not set the property value 5 5 PASS e.style['animation-duration'] = "1s 2s" should not set the property value -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/parsing/transition-delay-invalid-expected.txt
r251591 r251658 1 1 2 2 PASS e.style['transition-delay'] = "infinite" should not set the property value 3 FAIL e.style['transition-delay'] = "0" should not set the property value assert_equals: expected "" but got "0ms" 3 PASS e.style['transition-delay'] = "0" should not set the property value 4 4 PASS e.style['transition-delay'] = "500ms 0.5s" should not set the property value 5 5 PASS e.style['transition-delay'] = "-3s, initial" should not set the property value -
trunk/LayoutTests/legacy-animation-engine/animations/fill-mode-forwards-zero-duration.html
r235960 r251658 10 10 width: 100px; 11 11 background-color: blue; 12 animation: anim1 0 2s linear forwards;12 animation: anim1 0s 2s linear forwards; 13 13 } 14 14 @keyframes anim1 { -
trunk/LayoutTests/legacy-animation-engine/compositing/animation/keyframe-order.html
r235960 r251658 22 22 23 23 .spinner.animating { 24 -webkit-animation: imageSpin 999999999s linear 0 infinite24 -webkit-animation: imageSpin 999999999s linear 0s infinite 25 25 } 26 26 -
trunk/LayoutTests/legacy-animation-engine/css1/units/zero-duration-without-units.html
r235960 r251658 12 12 -webkit-transition-property: top, left; 13 13 -webkit-transition-duration: 1s; 14 -webkit-transition-duration: 0 ;14 -webkit-transition-duration: 0s; 15 15 -webkit-transition-timing-function: linear; 16 16 } -
trunk/LayoutTests/legacy-animation-engine/transitions/zero-duration-in-list.html
r235960 r251658 10 10 width: 100px; 11 11 background-color: blue; 12 -webkit-transition-duration: 0 , 0.5s;12 -webkit-transition-duration: 0s, 0.5s; 13 13 -webkit-transition-timing-function: linear; 14 14 -webkit-transition-property: top, left; -
trunk/LayoutTests/legacy-animation-engine/transitions/zero-duration-without-units.html
r235960 r251658 10 10 -webkit-transition-property: top; 11 11 -webkit-transition-duration: 1s; 12 -webkit-transition-duration: 0 ;12 -webkit-transition-duration: 0s; 13 13 } 14 14 </style> -
trunk/LayoutTests/transitions/zero-duration-in-list.html
r235948 r251658 10 10 width: 100px; 11 11 background-color: blue; 12 -webkit-transition-duration: 0 , 0.5s;12 -webkit-transition-duration: 0s, 0.5s; 13 13 -webkit-transition-timing-function: linear; 14 14 -webkit-transition-property: top, left; -
trunk/LayoutTests/transitions/zero-duration-without-units.html
r120521 r251658 10 10 -webkit-transition-property: top; 11 11 -webkit-transition-duration: 1s; 12 -webkit-transition-duration: 0 ;12 -webkit-transition-duration: 0s; 13 13 } 14 14 </style> -
trunk/LayoutTests/webanimations/css-animations-expected.txt
r229981 r251658 12 12 PASS Seeking the animation to its end time no longer lists the animation after it has been running. 13 13 PASS Setting the target's animation-name to none no longer lists the animation after it has been running. 14 PASS Setting the target's animation-duration to 0 no longer lists the animation after it has been running.14 PASS Setting the target's animation-duration to 0s no longer lists the animation after it has been running. 15 15 -
trunk/LayoutTests/webanimations/css-animations.html
r237857 r251658 92 92 assert_equals(target.getAnimations()[0].effect.getTiming().delay, -1000, "The animation's delay matches the initial animation-delay property."); 93 93 94 target.style.animationDelay = 0;94 target.style.animationDelay = "0s"; 95 95 assert_equals(target.getAnimations()[0].effect.getTiming().delay, 0, "The animation's delay matches the updated animation-delay property."); 96 96 }, "Web Animations should reflect the animation-delay property."); … … 222 222 runAnimationCompletionTest(animation => animation.currentTime = animation.effect.getTiming().duration, "Seeking the animation to its end time"); 223 223 runAnimationCompletionTest(animation => animation.effect.target.style.animationName = "none", "Setting the target's animation-name to none"); 224 runAnimationCompletionTest(animation => animation.effect.target.style.animationDuration = 0, "Setting the target's animation-duration to 0");224 runAnimationCompletionTest(animation => animation.effect.target.style.animationDuration = "0s", "Setting the target's animation-duration to 0s"); 225 225 226 226 </script> -
trunk/Source/WebCore/ChangeLog
r251657 r251658 1 2019-10-28 Antoine Quint <graouts@apple.com> 2 3 CSS Transitions and CSS Animations properties should treat unitless 0 as an invalid value for times 4 https://bugs.webkit.org/show_bug.cgi?id=203484 5 6 Reviewed by Antti Koivisto. 7 8 The CSS specification does not allow for "0" as a valid time (https://drafts.csswg.org/css-values-3/#time). 9 We change the way we parse time values to only allow for "0" if the UnitlessQuirk is set to Allow, which is 10 only the case for the -webkit-marquee-speed property. 11 12 * css/parser/CSSPropertyParserHelpers.cpp: 13 (WebCore::CSSPropertyParserHelpers::consumeTime): 14 1 15 2019-10-27 Antoine Quint <graouts@apple.com> 2 16 -
trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
r251580 r251658 448 448 const CSSParserToken& token = range.peek(); 449 449 CSSPrimitiveValue::UnitType unit = token.unitType(); 450 bool acceptUnitless = token.type() == NumberToken && shouldAcceptUnitlessValue(token.numericValue(), cssParserMode, unitless);450 bool acceptUnitless = token.type() == NumberToken && unitless == UnitlessQuirk::Allow && shouldAcceptUnitlessValue(token.numericValue(), cssParserMode, unitless); 451 451 if (acceptUnitless) 452 452 unit = CSSPrimitiveValue::UnitType::CSS_MS; -
trunk/Source/WebInspectorUI/ChangeLog
r251624 r251658 1 2019-10-28 Antoine Quint <graouts@apple.com> 2 3 CSS Transitions and CSS Animations properties should treat unitless 0 as an invalid value for times 4 https://bugs.webkit.org/show_bug.cgi?id=203484 5 6 Reviewed by Antti Koivisto. 7 8 Use 0s instead of 0 in places where unitless times were used but shouldn't have been. 9 10 * UserInterface/Views/FindBanner.css: 11 (.no-find-banner-transition:matches(.find-banner, .supports-find-banner)): 12 * UserInterface/Views/TabBar.css: 13 (.tab-bar > .item > .close): 14 1 15 2019-10-25 Devin Rousso <drousso@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/FindBanner.css
r248180 r251658 53 53 54 54 .no-find-banner-transition:matches(.find-banner, .supports-find-banner) { 55 transition-duration: 0 !important;55 transition-duration: 0s !important; 56 56 } 57 57 -
trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.css
r246666 r251658 191 191 transition-property: background-color, opacity; 192 192 transition-duration: 250ms, 500ms; 193 transition-delay: 0 , 50ms;193 transition-delay: 0s, 50ms; 194 194 195 195 -webkit-margin-end: 4px;
Note: See TracChangeset
for help on using the changeset viewer.