tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

visibility-collapse-rowspan-crash.html (1164B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <link rel="author" title="Joy Yu" href="mailto:joysyu@mit.edu">
      5 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#visibility-collapse-cell-rendering">
      6 <h1>Visibility collapse</h1>
      7 <a href="https://drafts.csswg.org/css-tables-3/#computing-the-table-width">Spec</a>
      8 <p>
      9 When a row is collapsed, a cell spanning the row may get clipped. When the row is then uncollapsed,
     10 the browser should not crash because the cell's children should be correctly updated and laid out.
     11 </p>
     12 <table>
     13  <tr>
     14    <td><div style="width: 10px; height: 10px"></div></td>
     15    <td rowspan="2">
     16      <div style="outline: 1px solid cyan">
     17        Overflow Overflow Overflow</div>
     18    </td>
     19  </tr>
     20  <tr id="rowToCollapse">
     21    <td><div style="width: 10px; height: 10px"></div></td>
     22  </tr>
     23 </table>
     24 
     25 <script>
     26    test(() => {
     27    row = document.getElementById("rowToCollapse");
     28    row.style.visibility = "collapse";
     29    step_timeout(function(){ row.style.visibility = "visible"; }, 500);
     30    }, "No crash or assertion failure. crbug.com/753515");
     31 </script>