Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-backgrounds/background-clip/clip-text-animated-text.html
<!doctype html> <html class="reftest-wait"> <title>CSS Test: background-clip: text animated text</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text"> <link rel="author" href="mailto:nathan@knowler.dev" title="Nathan Knowler"> <link rel="match" href="clip-text-animated-text-ref.html"> <style> .text { background-color: DeepPink; background-clip: text; font-size: 50px; font-family: sans-serif; font-weight: 600; color: transparent; } .text p { animation: fade-in 0.1s both; } @keyframes fade-in { from { opacity: 0; } } </style> <div class="text"> <p>Text</p> </div> <script> const [animation] = document.querySelector(".text p").getAnimations(); animation.finished.then(() => { document.documentElement.classList.remove("reftest-wait"); }); </script>
/css/css-backgrounds/background-clip/clip-text-animated-text-ref.html
<!doctype html> <title>CSS Test Reference</title> <style> .text { background-color: DeepPink; background-clip: text; font-size: 50px; font-family: sans-serif; font-weight: 600; color: transparent; } </style> <div class="text"> <p>Text</p> </div>