Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-01-22 07:39:40 UTC (rev 288402)
@@ -1,3 +1,22 @@
+2022-01-21 Antoine Quint <[email protected]>
+
+ Update css/css-animation WPT following animation-composition testing updates
+ https://bugs.webkit.org/show_bug.cgi?id=235443
+
+ Unreviewed WPT import and rebaseline.
+
+ * web-platform-tests/css/css-animations/CSSAnimation-effect.tentative-expected.txt:
+ * web-platform-tests/css/css-animations/CSSAnimation-effect.tentative.html:
+ * web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt:
+ * web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html:
+ * web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative-expected.txt: Added.
+ * web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative.html: Added.
+ * web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative-expected.txt: Added.
+ * web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative.html: Added.
+ * web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative-expected.txt: Added.
+ * web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative.html: Added.
+ * web-platform-tests/css/css-animations/parsing/w3c-import.log:
+
2022-01-21 Antti Koivisto <[email protected]>
WPT version of css/css-cascade/parsing/layer-import-parsing.html crashes with nullptr
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative-expected.txt (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative-expected.txt 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative-expected.txt 2022-01-22 07:39:40 UTC (rev 288402)
@@ -5,5 +5,6 @@
PASS A play-pending animation's effect whose effect is replaced still exits the pending state
PASS CSS animation events are dispatched at the original element even after setting an effect with a different target element
PASS After replacing a finished animation's effect with a longer one it fires an animationstart event
+FAIL Setting animation-composition sets the composite property on the effect assert_equals: expected "add" but got "replace"
PASS Replacing the effect of a CSSAnimation causes subsequent changes to corresponding animation-* properties to be ignored
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative.html (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative.html 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/CSSAnimation-effect.tentative.html 2022-01-22 07:39:40 UTC (rev 288402)
@@ -133,7 +133,15 @@
test(t => {
const div = addDiv(t);
+ div.style.animation = 'anim 100s';
+ div.style.animationComposition = 'add';
+ const animation = div.getAnimations()[0];
+ assert_equals(animation.effect.composite, 'add');
+}, 'Setting animation-composition sets the composite property on the effect');
+test(t => {
+ const div = addDiv(t);
+
// Create custom keyframes so we can tweak them
const stylesheet = document.styleSheets[0];
const keyframes = '@keyframes anim-custom { to { left: 100px } }';
@@ -161,6 +169,7 @@
div.style.animationDelay = '8s';
div.style.animationFillMode = 'both';
div.style.animationPlayState = 'paused';
+ div.style.animationComposition = 'add';
// Update the keyframes
keyframesRule.deleteRule(0);
@@ -197,6 +206,11 @@
'200px',
'keyframes should be the value set by the API'
);
+ assert_equals(
+ animation.effect.composite,
+ 'replace',
+ 'composite should be the value set by the API'
+ );
// Unlike the other properties animation-play-state maps to the Animation
// not the KeyframeEffect so it should be overridden.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative-expected.txt 2022-01-22 07:39:40 UTC (rev 288402)
@@ -4,6 +4,9 @@
PASS KeyframeEffect.getKeyframes() returns frames with expected easing values, when the easing comes from animation-timing-function on the element
PASS KeyframeEffect.getKeyframes() returns frames with expected easing values, when the easing is specified on each keyframe
PASS KeyframeEffect.getKeyframes() returns frames with expected easing values, when the easing is specified on some keyframes
+PASS KeyframeEffect.getKeyframes() returns frames with expected composite values, when the composite is set on the effect using animation-composition on the element
+FAIL KeyframeEffect.getKeyframes() returns frames with expected composite values, when the composite is specified on each keyframe assert_equals: value of 'composite' on ComputedKeyframe #0 expected "replace" but got "auto"
+FAIL KeyframeEffect.getKeyframes() returns frames with expected composite values, when the composite is specified on some keyframes assert_equals: value of 'composite' on ComputedKeyframe #0 expected "add" but got "auto"
PASS KeyframeEffect.getKeyframes() returns expected frames for a simple animation that specifies a single shorthand property
PASS KeyframeEffect.getKeyframes() returns expected frames for an animation with a 0% keyframe and no 100% keyframe
PASS KeyframeEffect.getKeyframes() returns expected frames for an animation with a 100% keyframe and no 0% keyframe
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html 2022-01-22 07:39:40 UTC (rev 288402)
@@ -37,7 +37,7 @@
@keyframes anim-simple-timing {
from { color: rgb(0, 0, 0); animation-timing-function: linear; }
- 50% { color: rgb(0, 0, 255); animation-timing-function: ease-in-out; }
+ 50% { color: rgb(0, 0, 255); animation-timing-function: ease-in-out; }
to { color: rgb(255, 255, 255); animation-timing-function: step-end; }
}
@@ -47,6 +47,18 @@
to { color: rgb(255, 255, 255); }
}
+@keyframes anim-simple-composite {
+ from { color: rgb(0, 0, 0); animation-composition: replace; }
+ 50% { color: rgb(0, 0, 255); animation-composition: add; }
+ to { color: rgb(255, 255, 255); animation-composition: accumulate; }
+}
+
+@keyframes anim-simple-composite-some {
+ from { color: rgb(0, 0, 0); animation-composition: add; }
+ 50% { color: rgb(0, 0, 255); }
+ to { color: rgb(255, 255, 255); }
+}
+
@keyframes anim-simple-shorthand {
from { margin: 8px; }
to { margin: 16px; }
@@ -182,6 +194,12 @@
"cubic-bezier(0, 0.25, 0.75, 1)"
];
+const kCompositeValues = [
+ "replace",
+ "add",
+ "accumulate"
+];
+
test(t => {
const div = addDiv(t);
@@ -272,7 +290,59 @@
+ ' values, when the easing is specified on some keyframes');
test(t => {
+ for (const composite of kCompositeValues) {
+ const div = addDiv(t);
+
+ div.style.animation = 'anim-simple-three 100s';
+ div.style.animationComposition = composite;
+ const frames = getKeyframes(div);
+
+ assert_equals(frames.length, 3, "number of frames");
+
+ for (let i = 0; i < frames.length; i++) {
+ assert_equals(frames[i].composite, "auto",
+ "value for 'composite' on ComputedKeyframe #" + i);
+ }
+ }
+}, 'KeyframeEffect.getKeyframes() returns frames with expected composite'
+ + ' values, when the composite is set on the effect using animation-composition on the'
+ + ' element');
+
+test(t => {
const div = addDiv(t);
+
+ div.style.animation = 'anim-simple-composite 100s';
+ const frames = getKeyframes(div);
+
+ assert_equals(frames.length, 3, "number of frames");
+ assert_equals(frames[0].composite, "replace",
+ "value of 'composite' on ComputedKeyframe #0");
+ assert_equals(frames[1].composite, "add",
+ "value of 'composite' on ComputedKeyframe #1");
+ assert_equals(frames[2].composite, "accumulate",
+ "value of 'composite' on ComputedKeyframe #2");
+}, 'KeyframeEffect.getKeyframes() returns frames with expected composite'
+ + ' values, when the composite is specified on each keyframe');
+
+test(t => {
+ const div = addDiv(t);
+
+ div.style.animation = 'anim-simple-composite-some 100s';
+ div.style.animationComposition = 'accumulate';
+ const frames = getKeyframes(div);
+
+ assert_equals(frames.length, 3, "number of frames");
+ assert_equals(frames[0].composite, "add",
+ "value of 'composite' on ComputedKeyframe #0");
+ assert_equals(frames[1].composite, "auto",
+ "value of 'composite' on ComputedKeyframe #1");
+ assert_equals(frames[2].composite, "auto",
+ "value of 'composite' on ComputedKeyframe #2");
+}, 'KeyframeEffect.getKeyframes() returns frames with expected composite'
+ + ' values, when the composite is specified on some keyframes');
+
+test(t => {
+ const div = addDiv(t);
div.style.animation = 'anim-simple-shorthand 100s';
const frames = getKeyframes(div);
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative-expected.txt (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative-expected.txt 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,3 @@
+
+FAIL Property animation-composition value 'replace, add, accumulate' assert_true: animation-composition doesn't seem to be supported in the computed style expected true got false
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative.html (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative.html 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Animations: getComputedStyle().animationComposition</title>
+<link rel="help" href=""
+<meta name="assert" content="animation-composition computed value is as specified.">
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("animation-composition", "replace, add, accumulate");
+</script>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative-expected.txt (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative-expected.txt 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,6 @@
+
+PASS e.style['animation-composition'] = "auto" should not set the property value
+PASS e.style['animation-composition'] = "add replace" should not set the property value
+PASS e.style['animation-composition'] = "add, initial" should not set the property value
+PASS e.style['animation-composition'] = "initial, add" should not set the property value
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative.html (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative.html 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Animations: parsing animation-composition with invalid values</title>
+<link rel="help" href=""
+<meta name="assert" content="animation-composition supports only the grammar '<single-animation-composition> #'.">
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+test_invalid_value("animation-composition", "auto");
+test_invalid_value("animation-composition", "add replace");
+
+test_invalid_value("animation-composition", "add, initial");
+test_invalid_value("animation-composition", "initial, add");
+</script>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative-expected.txt (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative-expected.txt 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,6 @@
+
+FAIL e.style['animation-composition'] = "replace" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['animation-composition'] = "add" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['animation-composition'] = "accumulate" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['animation-composition'] = "replace, add, accumulate" should set the property value assert_not_equals: property should be set got disallowed value ""
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative.html (0 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative.html 2022-01-22 07:39:40 UTC (rev 288402)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Animations: parsing animation-composition with valid values</title>
+<link rel="help" href=""
+<meta name="assert" content="animation-composition supports the full grammar '<single-animation-composition> #'.">
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+test_valid_value("animation-composition", "replace");
+test_valid_value("animation-composition", "add");
+test_valid_value("animation-composition", "accumulate");
+test_valid_value("animation-composition", "replace, add, accumulate");
+</script>
+</body>
+</html>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/w3c-import.log (288401 => 288402)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/w3c-import.log 2022-01-22 06:03:25 UTC (rev 288401)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/w3c-import.log 2022-01-22 07:39:40 UTC (rev 288402)
@@ -14,6 +14,9 @@
None
------------------------------------------------------------------------
List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-computed.tentative.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-invalid.tentative.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-composition-valid.tentative.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-computed.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-delay-computed.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-animations/parsing/animation-delay-invalid.html