Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>Matching animation-name from within a shadow root with a single @keyframes rule in the outer scope</title>
<link rel="author" title="Antoine Quint" href="mailto:graouts@webkit.org">
<link rel="match" href="animation-name-in-shadow-part-ref.html">
</head>
<body>
<style>
#shadow {
width: 100px;
height: 100px;
}
@keyframes animation {
from, to { background-color: green }
}
#shadow::part(target) {
height: 100px;
width: 100px;
animation: animation 1s both;
background-color: red;
}
</style>
<div id="shadow">
<template shadowrootmode="open">
<div part="target"></div>
</template>
</div>
</body>
</html>