position-sticky-table-pixel-rounding.html (797B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos" /> 3 <link rel="match" href="position-sticky-table-pixel-rounding-ref.html" /> 4 <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org" /> 5 <meta name="assert" content="Passes if there is no gap between the second and third column"> 6 <style> 7 table { 8 border-spacing: 0; 9 } 10 td { 11 padding: 0px 9.6px; 12 background-color: #fff; 13 } 14 .sticky { 15 position: sticky; 16 left: 0px; 17 background-color: #c3c3c3; 18 } 19 </style> 20 <table> 21 <tr> 22 <td class="sticky" style="width: 64.138px"></td> 23 <td class="sticky" style="width: 10px"></td> 24 <td class="sticky">Content</td> 25 </tr> 26 </table>