Update web-platform-tests to revision aa86bfbb569fee92a3176bae68e3b7ec54140a6d

This commit is contained in:
WPT Sync Bot 2020-07-22 08:20:19 +00:00
parent a242913629
commit 4c80634acb
102 changed files with 1207 additions and 360 deletions

View file

@ -0,0 +1,16 @@
<!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>

View file

@ -0,0 +1,23 @@
<!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: 5px;
height: 5px;
}
</style>
<table>
<tr>
<td><div></div></td>
</tr>
</table>

View file

@ -0,0 +1,31 @@
<!doctype html>
<title>max-height cannot shrink a table under its intrinsic size</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="help" href="https://github.com/w3c/csswg-drafts/issues/5336">
<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="max-height-table-ref.html">
<style>
td {
padding: 0;
}
table {
border-spacing: 0;
max-height: 0;
border: 1px solid black;
background: green;
padding: 5px;
}
div {
width: 5px;
height: 5px;
}
</style>
<table>
<tr>
<td><div></div></td>
</tr>
</table>

View file

@ -0,0 +1,41 @@
<!doctype html>
<title>min-height can grow a table over its intrinsic size</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="help" href="https://github.com/w3c/csswg-drafts/issues/5336">
<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>
:root { overflow: hidden; }
td {
padding: 0;
}
table {
border-spacing: 0;
max-height: 40px; /* Just to make sure that min trumps max, like everywhere else */
min-height: 50%;
border: 1px solid black;
background: green;
padding: 5px;
}
.outer {
/* 300px from the ref, plus 12px for border + padding, which applies to the table wrapper box, not the grid box */
height: calc((300px + 12px) * 2);
}
.inner {
width: 300px;
height: 5px;
}
</style>
<div class="outer">
<table>
<tr>
<td><div class="inner"></div></td>
</tr>
</table>
</div>

View file

@ -0,0 +1,23 @@
<!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>

View file

@ -0,0 +1,30 @@
<!doctype html>
<title>min-height can grow a table over its intrinsic size</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="help" href="https://github.com/w3c/csswg-drafts/issues/5336">
<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>
td {
padding: 0;
}
table {
border-spacing: 0;
min-height: 312px; /* To account for the padding + border, which apply to the wrapper box, not the grid box */
border: 1px solid black;
background: green;
padding: 5px;
}
div {
width: 300px;
height: 5px;
}
</style>
<table>
<tr>
<td><div></div></td>
</tr>
</table>

View file

@ -0,0 +1,43 @@
<!doctype html>
<title>CSS Test Reference</title>
<meta charset="utf-8">
<style>
html,
body {
color: black;
background-color: white;
font: 16px/0 monospace;
padding: 0;
margin: 0;
}
.table {
box-sizing: content-box;
border: 3px solid black;
padding: 5px;
background: blue content-box;
display: inline-block;
}
.big {
width: 75px;
height: 75px;
}
.td {
padding: 1px;
}
.grid {
display: grid;
width: 75px;
height: 75px;
}
</style>
<div class="table"><div class="td"></div></div><br>
<div class="table" style="min-height: 50px"><div class="td"></div></div><br>
<div class="table" style="min-width: 50px"><div class="td"></div></div><br>
<div class="table"><div class="td"><div class="big"></div></div></div><br>
<div class="table"><div class="td"><div class="big"></div></div></div><br>
<div class="grid"><div class="table" style="max-height: 50px"><div class="td"></div></div></div>
<div class="grid"><div class="table" style="max-width: 50px"><div class="td"></div></div></div>

View file

@ -0,0 +1,47 @@
<!doctype html>
<title>min/max-{width,height} on tables with box-sizing: content-box</title>
<meta charset="utf-8">
<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="help" href="https://github.com/w3c/csswg-drafts/issues/5336">
<link rel="author" href="mailto:mats@mozilla.com" title="Mats Palmgren">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="min-max-size-table-content-box-ref.html">
<style>
html,
body {
color: black;
background-color: white;
font: 16px/1 monospace;
padding: 0;
margin: 0;
}
table {
box-sizing: content-box;
border: 3px solid black;
padding: 5px;
background: blue content-box;
border-spacing: 0;
}
td {
padding: 1px;
}
div {
width: 75px;
height: 75px;
}
.grid {
display: grid;
}
</style>
<table><td></td></table>
<table style="min-height:50px"><td></td></table>
<table style="min-width:50px"><td></td></table>
<table style="max-height:50px"><td><div></div></td></table>
<table style="max-width:50px"><td><div></div></td></table>
<div class="grid"><table style="max-height:50px"><td></td></table></div>
<div class="grid"><table style="max-width:50px"><td></td></table></div>