Files
sousa-gecko/testing/web-platform/tests/css/css-values/tree-counting/sibling-index-keyframe-scale-dynamic.html
T
Rune Lillesveen 11f96bfc10 Bug 1966587 [wpt PR 52564] - Use TreeCountingChecker for rotate interpolations,
Automatic update from web-platform-tests
Use TreeCountingChecker for rotate interpolations

Coincidentally fixing 384966232 by passing a proper CSSLengthResolver

Bug: 415626999, 384966232
Change-Id: Ifa60457e219816e10207977f28b749c85fc8736f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6543093
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1460561}

--

wpt-commits: 13c6c3671c67092d98626a078b07d995a51738d5
wpt-pr: 52564

Differential Revision: https://phabricator.services.mozilla.com/D250619
2025-05-22 10:38:23 +00:00

35 lines
897 B
HTML

<!DOCTYPE html>
<title>CSS Values and Units Test: sibling-index() changing scale during @keyframes animation</title>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#tree-counting">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@keyframes --anim {
from {
scale: 0.7 calc(0.2 * sibling-index());
}
to {
scale: 0.3 2;
}
}
#target {
animation: --anim 1000s step-end;
}
</style>
<div>
<div id="rm"></div>
<div></div>
<div id="target"></div>
</div>
<script>
test(() => {
assert_equals(getComputedStyle(target).scale, "0.7 0.6");
}, "Initially, the sibling-index() is 3 for #target");
test(() => {
rm.remove();
assert_equals(getComputedStyle(target).scale, "0.7 0.4");
}, "Removing a preceding sibling of #target reduces the sibling-index()");
</script>