Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/animation/scale-explicit-and-implicit-keyframes.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>
/css/css-transforms/animation/scale-explicit-and-implicit-keyframes-ref.html
<!DOCTYPE html> <html> <head> <style> div { width: 100px; height: 100px; margin: 10px; background-color: black; } #explicit-from-and-to { scale: 0.3; } #unspecifed-from { scale: 0.8; } #base-value-from { scale: 0.5; } #unspecifed-to { scale: 0.4; } #base-value-to { scale: 0.3; } </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> </body> </html>