Update web-platform-tests to revision b'89142292ab8c7f3564d978a76fdabc66626c421e'

This commit is contained in:
WPT Sync Bot 2023-01-26 01:42:16 +00:00
parent 7f838a4f5f
commit cda7a10498
98 changed files with 2782 additions and 1163 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<html class="reftest-wait foo">
<title>View transitions: ensure :only-child is supported on view-transition-group</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
@ -8,6 +8,22 @@
<script src="/resources/testharnessreport.js"></script>
<style>
::view-transition {
background-color: black;
}
html:only-child {
background-color: black;
}
:root:only-child {
background-color: black;
}
:only-child {
background-color: black;
}
.foo:only-child {
background-color: black;
}
::view-transition-group(root) {
background-color: blue;
}

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<html class="reftest-wait foo">
<title>View transitions: ensure :only-child is supported on view-transition-image-pair</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
@ -8,6 +8,22 @@
<script src="/resources/testharnessreport.js"></script>
<style>
::view-transition {
background-color: black;
}
html:only-child {
background-color: black;
}
:root:only-child {
background-color: black;
}
:only-child {
background-color: black;
}
.foo:only-child {
background-color: black;
}
::view-transition-image-pair(root):only-child {
background-color: red;
}

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<html class="reftest-wait foo">
<title>View transitions: ensure :only-child is supported on view-transition-new</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
@ -8,6 +8,22 @@
<script src="/resources/testharnessreport.js"></script>
<style>
::view-transition {
background-color: black;
}
html:only-child {
background-color: black;
}
:root:only-child {
background-color: black;
}
:only-child {
background-color: black;
}
.foo:only-child {
background-color: black;
}
::view-transition-new(root) {
background-color: blue;
}

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<html class="reftest-wait foo">
<title>View transitions: ensure :only-child is supported on view-transition-old</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
@ -8,6 +8,22 @@
<script src="/resources/testharnessreport.js"></script>
<style>
::view-transition {
background-color: black;
}
html:only-child {
background-color: black;
}
:root:only-child {
background-color: black;
}
:only-child {
background-color: black;
}
.foo:only-child {
background-color: black;
}
::view-transition-old(root) {
background-color: blue;
}

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html class="reftest-wait foo">
<title>View transitions: ensure :only-child is supported on view-transition</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:khushalsagar@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
::view-transition {
background-color: red;
}
html:only-child {
background-color: blue;
}
:root:only-child {
background-color: blue;
}
:only-child {
background-color: blue;
}
.foo:only-child {
background-color: blue;
}
</style>
<script>
promise_test(() => {
return new Promise(async (resolve, reject) => {
let transition = document.startViewTransition();
transition.ready.then(() => {
let style = getComputedStyle(
document.documentElement, ":view-transition");
if (style.backgroundColor == "rgb(255, 0, 0)")
resolve();
else
reject(style.backgroundColor);
});
});
}, ":only-child is not supported on view-transition");
</script>