Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class=reftest-wait>
<title>View transitions: selector should match an escaped \* name</title>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="match" href="pseudo-with-classes-ref.html">
<script src="/common/rendering-utils.js"></script>
<script src="/common/reftest-wait.js"></script>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
#target {
background: green;
view-transition-name: \*;
}
::view-transition-group(*),
::view-transition-image-pair(*),
::view-transition-old(*),
::view-transition-new(*) {
animation-play-state: paused;
}
/* "\*" is an escaped <custom-ident> that spells the character "*". It must match
the group whose view-transition-name computes to the literal string "*". */
::view-transition-new(\*),
::view-transition-old(\*) {
left: 100px;
}
</style>
<div id=target></div>
<script>
failIfNot(document.startViewTransition, "Missing document.startViewTransition");
window.addEventListener("load", () => {
document.startViewTransition().ready.then(takeScreenshot);
});
</script>