From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../tests/css/css-view-transitions/only-child-group.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'testing/web-platform/tests/css/css-view-transitions/only-child-group.html') diff --git a/testing/web-platform/tests/css/css-view-transitions/only-child-group.html b/testing/web-platform/tests/css/css-view-transitions/only-child-group.html index 05275a3448..551e881611 100644 --- a/testing/web-platform/tests/css/css-view-transitions/only-child-group.html +++ b/testing/web-platform/tests/css/css-view-transitions/only-child-group.html @@ -1,7 +1,7 @@ View transitions: ensure :only-child is supported on view-transition-group - + @@ -54,8 +54,7 @@ promise_test(() => { return new Promise(async (resolve, reject) => { let transition = document.startViewTransition(); transition.ready.then(() => { - let style = getComputedStyle( - document.documentElement, ":view-transition-group(root)"); + let style = getComputedStyle(document.documentElement, "::view-transition-group(root)"); if (style.backgroundColor == "rgb(255, 0, 0)" && style.color == "rgb(255, 0, 0)") resolve(); else @@ -70,8 +69,7 @@ promise_test(() => { target.style.viewTransitionName = "target"; let transition = document.startViewTransition(); transition.ready.then(() => { - let style = getComputedStyle( - document.documentElement, ":view-transition-group(root)"); + let style = getComputedStyle(document.documentElement, "::view-transition-group(root)"); if (style.backgroundColor == "rgb(0, 0, 255)" && style.color == "rgb(0, 0, 255)") resolve(); else @@ -87,8 +85,7 @@ promise_test(() => { target.style.viewTransitionName = "target"; let transition = document.startViewTransition(); transition.ready.then(() => { - let style = getComputedStyle( - document.documentElement, ":view-transition-group(target)"); + let style = getComputedStyle(document.documentElement, "::view-transition-group(target)"); if (style.backgroundColor == "rgb(255, 0, 0)" && style.color == "rgb(255, 0, 0)") resolve(); else @@ -105,8 +102,7 @@ promise_test(() => { target2.style.viewTransitionName = "target2"; let transition = document.startViewTransition(); transition.ready.then(() => { - let style = getComputedStyle( - document.documentElement, ":view-transition-group(target)"); + let style = getComputedStyle(document.documentElement, "::view-transition-group(target)"); if (style.backgroundColor == "rgb(0, 0, 255)" && style.color == "rgb(0, 0, 255)") resolve(); else -- cgit v1.2.3