From 7300995d7647085f97dc32643f1eefd0c33c6050 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:53:14 +0200 Subject: Adding upstream version 125.0.3. Signed-off-by: Daniel Baumann --- .../CSSTransition-effect.tentative.html.ini | 5 --- .../transition-ready-time-offscreen.html | 44 ++++++++++++++++++++++ .../CSSTransition-effect.tentative.html | 7 ++-- 3 files changed, 48 insertions(+), 8 deletions(-) delete mode 100644 testing/web-platform/meta/css/css-transitions/CSSTransition-effect.tentative.html.ini create mode 100644 testing/web-platform/tests/css/css-animations/transition-ready-time-offscreen.html (limited to 'testing') diff --git a/testing/web-platform/meta/css/css-transitions/CSSTransition-effect.tentative.html.ini b/testing/web-platform/meta/css/css-transitions/CSSTransition-effect.tentative.html.ini deleted file mode 100644 index 7896769374..0000000000 --- a/testing/web-platform/meta/css/css-transitions/CSSTransition-effect.tentative.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[CSSTransition-effect.tentative.html] - [After setting a transition's effect to null, a new transition can be started] - expected: - if (os == "mac") and not debug: [PASS, FAIL] - if (os == "android") and not debug: [PASS, FAIL] diff --git a/testing/web-platform/tests/css/css-animations/transition-ready-time-offscreen.html b/testing/web-platform/tests/css/css-animations/transition-ready-time-offscreen.html new file mode 100644 index 0000000000..cc3151b40b --- /dev/null +++ b/testing/web-platform/tests/css/css-animations/transition-ready-time-offscreen.html @@ -0,0 +1,44 @@ + + +Transitions start at the same time regardless of on-screen status + + + + + +
+
+ diff --git a/testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html b/testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html index b58c93d2e6..0952a7cd8f 100644 --- a/testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html +++ b/testing/web-platform/tests/css/css-transitions/CSSTransition-effect.tentative.html @@ -85,12 +85,13 @@ promise_test(async t => { div.style.left = '150px'; // This will run style update. - assert_equals(div.getAnimations().length, 1); + const animations = div.getAnimations(); + assert_equals(animations.length, 1); - const new_transition = div.getAnimations()[0]; + const new_transition = animations[0]; await new_transition.ready; - assert_equals(getComputedStyle(div).left, '100px'); + assert_not_equals(getComputedStyle(div).left, '150px'); }, 'After setting a transition\'s effect to null, a new transition can be started'); // This is a regression test for https://crbug.com/992668, where Chromium would -- cgit v1.2.3