table-cell-background-local.html (1081B)
1 <!DOCTYPE html> 2 <title>Tests rendering of table cell's background-image with local attachment.</title> 3 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#ref-for-valdef-background-attachment-local"> 4 <link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow-hidden"> 5 <link rel="help" href="https://www.w3.org/TR/CSS2/visuren.html#block-formatting"> 6 <link rel="match" href="table-cell-background-local-ref.html"> 7 <meta name="assert" content="The local attachment background image of a table cell with overflow:hidden should be positioned in the scrolling area and clipped"> 8 Passes if there is a brown square. 9 <table style="border-spacing: 0"> 10 <tr> 11 <td id="target" 12 style="overflow: hidden; padding: 0; 13 background: linear-gradient(to bottom right, green, red); 14 background-attachment: local"> 15 <div style="width: 100px; height: 100px"> 16 <div style="width: 3000px; height: 3000px"></div> 17 </div> 18 </div> 19 </tr> 20 </table> 21 <script> 22 target.scrollTop = 1500; 23 target.scrollLeft = 1500; 24 </script>