wpt / css / css-tables / tentative / paint / overflow-hidden-table.html

Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-tables/tentative/paint/overflow-hidden-table.html

<!DOCTYPE html>
<title>Overflow hidden and captions</title>
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="help" href="https://www.w3.org/TR/css-tables-3/#global-style-overrides" />
<link rel="match" href="overflow-hidden-table-ref.html" />
<meta name="assert" content="Overflow hidden clips table grid, but not captions.">
<style>
main * {
  box-sizing: border-box;
}
main table {
  overflow: hidden;
  border: 20px solid green;
  border-spacing: 0px;
}
main caption {
  height: 30px;
  background: lightblue;
}
main td {
  padding:0px;
  width: 50px;
  height:50px;
}
</style>
<main>
  <table>
    <tr>
      <td>
        <div style="width:50px;height:50px">
          <div style="width:500px;height:500px;background:pink"></div>
        </div>
      </td>
    </tr>
  <caption style="caption-side:bottom">caption</caption>
  </table>
</main>

/css/css-tables/tentative/paint/overflow-hidden-table-ref.html

<!DOCTYPE html>
<style>
main * {
  box-sizing: border-box;
}
main .table {
  overflow: hidden;
  border: 20px solid green;
  width:90px;
}
main .caption {
  height: 30px;
  background: lightblue;
  width:90px;
  text-align: center;
}
main .cell {
  padding:0px;
  width: 50px;
  height:50px;
}
</style>
<main>
  <div class="table">
    <div class="cell">
      <div style="width:50px;height:50px">
        <div style="width:500px;height:500px;background:pink"></div>
      </div>
    </div>
  </div>
<div class="caption" style="caption-side:bottom">caption</caption>
</main>