Files
sousa-gecko/testing/web-platform/tests/css/css-shadow/scoped-reference-animation-002.html
T
Rune Lillesveen 3488f5d543 Bug 2011290 [wpt PR 57244] - Move css-scoping/ tests to css-shadow/ to match spec, a=testonly
Automatic update from web-platform-tests
Move css-scoping/ tests to css-shadow/ to match spec

Change-Id: Ie65e06f4160b9edfee12c1dbcad05f26b17a77b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7484758
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1570418}

--

wpt-commits: 1242323699cb7c21b584ce0554e621d172b6d985
wpt-pr: 57244
2026-01-23 14:41:13 +00:00

56 lines
1.3 KiB
HTML

<!DOCTYPE html>
<title>Tests animation with tree-scoped names and references</title>
<meta name="assert" content="Custom counter style references should work in shadow DOM keyframes">
<link rel="help" href="https://drafts.csswg.org/css-shadow/#shadow-names">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<link rel="match" href="scoped-reference-animation-ref.html">
<style>
@counter-style lower-roman { system: extends disc; }
@counter-style upper-roman { system: extends disc; }
</style>
<div id="host">
</div>
<script>
host.attachShadow({mode: 'open'}).innerHTML = `
<style>
/* Overrides predefined and outer tree scope's custom lower-roman counter-style */
@counter-style lower-roman {
system: cyclic;
symbols: 'X';
}
/* Overrides predefined and outer tree scope's upper-roman counter-style */
@counter-style upper-roman {
system: cyclic;
symbols: 'O';
}
/* Should resolve to the custom counter styles, not the predefined or the outer
tree scope's ones */
@keyframes list-style-type-anim {
from { list-style-type: lower-roman; }
to { list-style-type: upper-roman; }
}
#target1 {
animation: list-style-type-anim 2s -0.9s linear paused;
}
#target2 {
animation: list-style-type-anim 2s -1s linear paused;
}
</style>
<ul id="target1">
<li>List marker should be X
</ul>
<ul id="target2">
<li>List marker should be O
</ul>
`;
</script>