backdrop-animate-002.html (671B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Test: A Web Animations on ::backdrop</title> 4 <link rel="help" href="https://fullscreen.spec.whatwg.org/#::backdrop-pseudo-element"> 5 <link rel="match" href="backdrop-animate-002-ref.html"> 6 <dialog id="target">Dialog contents</dialog> 7 <!-- This test fails on WPT.fyi with off-by-one on the green background (Chrome-only): --> 8 <meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-472500"> 9 <script> 10 const target = document.getElementById("target"); 11 target.showModal(); 12 target.animate({ 13 opacity: [0.1, 0.1], 14 backgroundColor: ["green", "green"] 15 }, { 16 pseudoElement: "::backdrop", 17 duration: Infinity 18 }); 19 </script>