wpt / css / css-tables / empty-table-height.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-tables/empty-table-height.html

<!doctype html>
<title>Empty tables still account for paddings / borders</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1651530">
<link rel="help" href="https://drafts.csswg.org/css-tables/#computing-the-table-height">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="min-height-table-ref.html">
<style>
div {
  display: table;
  background-color: green;
  border: 1px solid black;
  padding: 155px;
}
</style>
<div></div>

/css/css-tables/min-height-table-ref.html

<!doctype html>
<title>CSS test reference</title>
<style>
td {
  padding: 0;
}

table {
  border-spacing: 0;
  border: 1px solid black;
  background: green;
  padding: 5px;
}
div {
  width: 300px;
  height: 300px;
}
</style>
<table>
  <tr>
    <td><div></div></td>
  </tr>
</table>