layout/tables/reftests/1220621-2b.html
author Dorel Luca <dluca@mozilla.com>
Tue, 12 Mar 2019 07:16:59 +0200
changeset 463594 89988d424c06a3333eb15a880bc1c4c6bbb1c070
parent 273054 50c1b2cb6ad1141a2bd53ed8b8c1738b42cf3a45
permissions -rw-r--r--
Backed out 4 changesets (bug 1500713) for build bustage Backed out changeset d25ff3b04eeb (bug 1500713) Backed out changeset 98265537ef34 (bug 1500713) Backed out changeset 670b24af24d4 (bug 1500713) Backed out changeset 7e5fa7b1f7bc (bug 1500713)

<!DOCTYPE html>
<style>
  table {
    table-layout: fixed;
    border: 1px solid black;
    width: 300px;
  }
  td {
    background: yellow;
    border: 1px solid purple;
  }
</style>
<table>
  <colgroup>
    <col>
    <col>
  </colgroup>
  <colgroup>
    <col>
    <col>
  </colgroup>
  <tbody>
    <td>One</td>
  </tbody>
</table>
<script>
  var t = document.querySelector("table");
  // Flush layout
  var width = t.offsetWidth;
  // Remove the first col
  document.querySelector("colgroup").remove();
</script>