Files
sousa-gecko/testing/web-platform/tests/css/css-transforms/animation/scale-explicit-and-implicit-keyframes.html
T
Antoine Quint 5d94ca30a9 Bug 2028134 [wpt PR 58819] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=310874, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=310874 (#58819)
--

wpt-commits: b38d2da7267fd0a95bfb7529edfdee94bd3f8caf
wpt-pr: 58819
2026-04-17 08:33:42 +00:00

72 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Animating the "scale" property with explicit and implicit keyframes</title>
<link rel="help" href="https://drafts.csswg.org/css-transforms/">
<link rel="match" href="scale-explicit-and-implicit-keyframes-ref.html">
<script src="../../../common/reftest-wait.js"></script>
<style>
div {
width: 100px;
height: 100px;
margin: 10px;
background-color: black;
animation: none 100000s -25000s linear forwards;
}
@keyframes explicit-from-and-to {
from { scale: 0.1 }
to { scale: 0.9 }
}
@keyframes implicit-from {
to { scale: 0.2 }
}
@keyframes implicit-to {
from { scale: 0.2 }
}
#explicit-from-and-to {
animation-name: explicit-from-and-to;
}
#unspecifed-from {
animation-name: implicit-from;
}
#base-value-from {
scale: 0.6;
animation-name: implicit-from;
}
#unspecifed-to {
animation-name: implicit-to;
}
#base-value-to {
scale: 0.6;
animation-name: implicit-to;
}
</style>
</head>
<body>
<div id="explicit-from-and-to"></div>
<div id="unspecifed-from"></div>
<div id="base-value-from"></div>
<div id="unspecifed-to"></div>
<div id="base-value-to"></div>
<script>
(async function() {
await Promise.all(document.getAnimations().map(animation => animation.ready));
await new Promise(requestAnimationFrame);
await new Promise(requestAnimationFrame);
takeScreenshot();
})();
</script>
</body>
</html>