From 7b84d896ac816c84aa8e707c4d22328b40e1b143 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Fri, 28 Jul 2023 09:20:36 -0700 Subject: [PATCH] CSSTransitionDiscrete: Rename transition-animation-type to transition-behavior This patch also renames the "discrete" value to "allow-discrete" This was resolved in the csswg: https://github.com/w3c/csswg-drafts/issues/8857#issuecomment-1646035541 Bug: 1453112 Change-Id: I9b9aad124376d5e7bf532d891b7a0e25b651ce2d --- css/css-animations/display-interpolation.html | 8 +-- .../content-visibility-interpolation.html | 4 +- .../overlay-transition-backdrop-entry.html | 2 +- .../overlay/overlay-transition-backdrop.html | 2 +- .../overlay/overlay-transition-finished.html | 2 +- .../overlay-transition-in-rendering.html | 2 +- .../overlay-transition-out-rendering.html | 2 +- .../overlay/overlay-transition.html | 2 +- ...stom-property-transition-custom-ident.html | 2 +- .../custom-property-transition-image.html | 2 +- ...m-property-transition-mismatched-list.html | 48 +++++++-------- ...roperty-transition-transform-function.html | 2 +- ...om-property-transition-transform-list.html | 2 +- .../custom-property-transition-url.html | 2 +- .../resources/utils.js | 4 +- .../all-with-discrete.tentative.html | 4 +- .../parsing/transition-behavior.html | 60 +++++++++---------- .../parsing/transition-shorthand.html | 6 +- css/support/interpolation-testcommon.js | 16 ++--- 19 files changed, 86 insertions(+), 86 deletions(-) diff --git a/css/css-animations/display-interpolation.html b/css/css-animations/display-interpolation.html index 4c3f8f8d217d621..fb2503ac8a41556 100644 --- a/css/css-animations/display-interpolation.html +++ b/css/css-animations/display-interpolation.html @@ -26,7 +26,7 @@ test_interpolation({ property: 'display', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'block', to: 'none', }, [ @@ -43,7 +43,7 @@ // can be worked around by using @initial. test_interpolation({ property: 'display', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'none', to: 'block', 'CSS Transitions with transition: all': alwaysBlock, @@ -65,14 +65,14 @@ test_interpolation({ property: 'display', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'block', to: 'block' }, alwaysBlock); test_interpolation({ property: 'display', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'none', to: 'none' }, alwaysNone); diff --git a/css/css-contain/content-visibility/content-visibility-interpolation.html b/css/css-contain/content-visibility/content-visibility-interpolation.html index 4b3cf856494e3ea..55f8c7e5af8e6e9 100644 --- a/css/css-contain/content-visibility/content-visibility-interpolation.html +++ b/css/css-contain/content-visibility/content-visibility-interpolation.html @@ -26,7 +26,7 @@ test_interpolation({ property: 'content-visibility', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'visible', to: 'hidden', }, [ @@ -40,7 +40,7 @@ test_interpolation({ property: 'content-visibility', - animationType: 'discrete', + behavior: 'allow-discrete', from: 'hidden', to: 'visible', }, [ diff --git a/css/css-position/overlay/overlay-transition-backdrop-entry.html b/css/css-position/overlay/overlay-transition-backdrop-entry.html index 7db33eb85dea74e..8737dc58f92ae01 100644 --- a/css/css-position/overlay/overlay-transition-backdrop-entry.html +++ b/css/css-position/overlay/overlay-transition-backdrop-entry.html @@ -13,7 +13,7 @@ transition-delay: 2s; transition-property: overlay; transition-duration: 2s; - transition-animation-type: discrete; + transition-behavior: allow-discrete; } [popover]::backdrop { background-color: blue; diff --git a/css/css-position/overlay/overlay-transition-backdrop.html b/css/css-position/overlay/overlay-transition-backdrop.html index fde933da5dbbbdb..30d40e111f9b676 100644 --- a/css/css-position/overlay/overlay-transition-backdrop.html +++ b/css/css-position/overlay/overlay-transition-backdrop.html @@ -8,7 +8,7 @@ display: block; visibility: hidden; transition: overlay 60s step-end; - transition-animation-type: discrete; + transition-behavior: allow-discrete; } [popover]::backdrop { background-color: green; diff --git a/css/css-position/overlay/overlay-transition-finished.html b/css/css-position/overlay/overlay-transition-finished.html index b2322389d06f102..7e22cb3cf64b9f4 100644 --- a/css/css-position/overlay/overlay-transition-finished.html +++ b/css/css-position/overlay/overlay-transition-finished.html @@ -20,7 +20,7 @@ } #transition-in { transition: overlay 0.1s step-end; - transition-animation-type: discrete; + transition-behavior: allow-discrete; background-color: green; } diff --git a/css/css-position/overlay/overlay-transition-in-rendering.html b/css/css-position/overlay/overlay-transition-in-rendering.html index dc1b9ffe20caaa6..0ada33c33cec13f 100644 --- a/css/css-position/overlay/overlay-transition-in-rendering.html +++ b/css/css-position/overlay/overlay-transition-in-rendering.html @@ -17,7 +17,7 @@ } #transition-in { transition: overlay 60s step-end; - transition-animation-type: discrete; + transition-behavior: allow-discrete; background-color: red; } diff --git a/css/css-position/overlay/overlay-transition-out-rendering.html b/css/css-position/overlay/overlay-transition-out-rendering.html index fea03951c5e9ae7..abb01faef7ea994 100644 --- a/css/css-position/overlay/overlay-transition-out-rendering.html +++ b/css/css-position/overlay/overlay-transition-out-rendering.html @@ -20,7 +20,7 @@ } #green.transition-enabled { transition: overlay 60s step-end; - transition-animation-type: discrete; + transition-behavior: allow-discrete; }
diff --git a/css/css-position/overlay/overlay-transition.html b/css/css-position/overlay/overlay-transition.html index 9eae2115ff07a6f..efe402373fffc3d 100644 --- a/css/css-position/overlay/overlay-transition.html +++ b/css/css-position/overlay/overlay-transition.html @@ -12,7 +12,7 @@ } .enable-transitions :is(#transition-in, #transition-out) { transition: overlay 60s step-end; - transition-animation-type: discrete; + transition-behavior: allow-discrete; }
diff --git a/css/css-properties-values-api/animation/custom-property-transition-custom-ident.html b/css/css-properties-values-api/animation/custom-property-transition-custom-ident.html index 2f5b55459d5b80c..b7ca1ec785e847c 100644 --- a/css/css-properties-values-api/animation/custom-property-transition-custom-ident.html +++ b/css/css-properties-values-api/animation/custom-property-transition-custom-ident.html @@ -11,7 +11,7 @@ from: "from", to: "to", expected: "to", - animationType: "discrete", + behavior: "allow-discrete", }, 'A custom property of type can yield a discrete CSS Transition'); diff --git a/css/css-properties-values-api/animation/custom-property-transition-image.html b/css/css-properties-values-api/animation/custom-property-transition-image.html index 8498615a936f6d2..4fd3fe649b0ac55 100644 --- a/css/css-properties-values-api/animation/custom-property-transition-image.html +++ b/css/css-properties-values-api/animation/custom-property-transition-image.html @@ -11,7 +11,7 @@ from: 'url("https://example.com/from")', to: 'url("https://example.com/to")', expected: 'url("https://example.com/to")', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type can yield a CSS Transition'); diff --git a/css/css-properties-values-api/animation/custom-property-transition-mismatched-list.html b/css/css-properties-values-api/animation/custom-property-transition-mismatched-list.html index 3007f2aa87dbeab..b7d964b92cb5c7c 100644 --- a/css/css-properties-values-api/animation/custom-property-transition-mismatched-list.html +++ b/css/css-properties-values-api/animation/custom-property-transition-mismatched-list.html @@ -11,7 +11,7 @@ from: '100deg, 200deg', to: '300deg', expected: '300deg', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -19,7 +19,7 @@ from: '100deg 200deg', to: '300deg', expected: '300deg', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -27,7 +27,7 @@ from: 'rgb(100, 100, 100), rgb(150, 150, 150)', to: 'rgb(200, 200, 200)', expected: 'rgb(200, 200, 200)', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -35,7 +35,7 @@ from: 'rgb(100, 100, 100) rgb(150, 150, 150)', to: 'rgb(200, 200, 200)', expected: 'rgb(200, 200, 200)', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -43,7 +43,7 @@ from: 'foo, bar', to: 'baz', expected: 'baz', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -51,7 +51,7 @@ from: 'foo bar', to: 'baz', expected: 'baz', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -59,7 +59,7 @@ from: 'url("https://example.com/foo"), url("https://example.com/bar")', to: 'url("https://example.com/to")', expected: 'url("https://example.com/to")', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -67,7 +67,7 @@ from: 'url("https://example.com/foo") url("https://example.com/bar")', to: 'url("https://example.com/to")', expected: 'url("https://example.com/to")', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -75,7 +75,7 @@ from: '100, 200', to: '300', expected: '300', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -83,7 +83,7 @@ from: '100 200', to: '300', expected: '300', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -91,7 +91,7 @@ from: '100px, 200px', to: '300%', expected: '300%', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -99,7 +99,7 @@ from: '100px 200px', to: '300%', expected: '300%', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -107,7 +107,7 @@ from: '100px, 200px', to: '300px', expected: '300px', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -115,7 +115,7 @@ from: '100px 200px', to: '300px', expected: '300px', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -123,7 +123,7 @@ from: '100, 200', to: '300', expected: '300', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -131,7 +131,7 @@ from: '100 200', to: '300', expected: '300', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -139,7 +139,7 @@ from: '100%, 200%', to: '300%', expected: '300%', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -147,7 +147,7 @@ from: '100% 200%', to: '300%', expected: '300%', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -155,7 +155,7 @@ from: '100dppx, 200dppx', to: '300dppx', expected: '300dppx', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type # yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -163,7 +163,7 @@ from: '100dppx 200dppx', to: '300dppx', expected: '300dppx', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type + yields a discrete CSS Transition if the lists do not contain the same number of values'); transition_test({ @@ -171,7 +171,7 @@ from: '100s, 200s', to: '300s', expected: '300s', - animationType: 'discrete', + behavior: 'allow-discrete', }, 'A custom property of type