fcTL-dispose-in-region-background.html (1572B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>PNG Third Edition: animated PNG, dispose ops and regions</title> 5 <link rel="author" title="Philip Taylor" href="mailto:excors@gmail.com"> 6 <link rel="author" title="Chris Lilley" href="mailto:chris@w3.org"> 7 <link rel="help" href="https://www.w3.org/TR/png-3/#apng-frame-based-animation"> 8 <link rel="help" href="https://www.w3.org/TR/png-3/#fcTL-chunk"> 9 <link rel="match" href="apng-blue-rect-checkerboard-ref.html"> 10 <meta name="assert" content="The frame must be rendered within the region defined by x_offset, y_offset, width, and height. The frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame."> 11 <script> 12 const el = document.querySelector(".reftest-wait"); 13 setTimeout(() => { 14 el.classList.remove('reftest-wait'); 15 }, 1300); 16 </script> 17 <style> 18 .test { 19 width: 128px; 20 height: 64px; 21 background-color: white; 22 background-image: 23 linear-gradient(45deg, #ccc 25%, transparent 25%), 24 linear-gradient(-45deg, #ccc 25%, transparent 25%), 25 linear-gradient(45deg, transparent 75%, #ccc 75%), 26 linear-gradient(-45deg, transparent 75%, #ccc 75%); 27 background-size: 16px 16px; 28 background-position: 0 0, 0 8px, 8px -8px, -8px 0px; 29 } 30 </style> 31 <body> 32 <p>Test passes if you see solid blue rectangle containing a smaller region with a grey checkerboard, and no red.</p> 33 <div class="test"><img src="support/015.png" alt=""></div> 34 </body> 35 </html>