apng-blue-rectangle-ref.html (856B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>PNG Third Edition: animated PNG, plays</title> 4 <link rel="author" title="Chris Lilley" href="mailto:chris@w3.org"> 5 <style> 6 .test { 7 width: 128px; 8 height: 64px; 9 background-color: white; 10 background-image: 11 linear-gradient(45deg, #ccc 25%, transparent 25%), 12 linear-gradient(-45deg, #ccc 25%, transparent 25%), 13 linear-gradient(45deg, transparent 75%, #ccc 75%), 14 linear-gradient(-45deg, transparent 75%, #ccc 75%); 15 background-size: 16px 16px; 16 background-position: 0 0, 0 8px, 8px -8px, -8px 0px; 17 } 18 </style> 19 <body> 20 <p>Test passes if this flashes yellow for one second, then 21 blue for one second, then yellow for one second, then blue forever.</p> 22 <div class="test"><img src="support/blue.png" alt=""></div> 23 </body>