forked from mirrors/gecko-dev
Automatic update from web-platform-tests [tables] Tables should respect the min content-size. Previously when we had a specified main-size, and we were a table, we considered this to be the min-size instead. This was incorrect. Instead we should have been applying the min content-size as the floor for tables, and leaving the main size alone. Bug: 1128941 Change-Id: I7310b5d31990ff77a028837f742b3a0eba697318 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438775 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#812447} -- wpt-commits: ba2fd2e2587f6430bb9b91222a3fe1ee95e0f7de wpt-pr: 25900
32 lines
746 B
HTML
32 lines
746 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://crbug.com/1128941">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
|
<meta name="assert" content="A positioned absolute table should respect its main-size, and never go below its min-content size.">
|
|
<style>
|
|
table {
|
|
position: absolute;
|
|
width: 50%;
|
|
border-spacing: 0;
|
|
}
|
|
td {
|
|
width: 100%;
|
|
line-height: 0;
|
|
padding: 0;
|
|
background: red;
|
|
}
|
|
span {
|
|
display: inline-block;
|
|
width: 100px;
|
|
height: 50px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div style="width: 200px; height: 200px; position: relative;">
|
|
<table>
|
|
<td>
|
|
<span></span>
|
|
<span></span>
|
|
</td>
|
|
</table>
|
|
</div>
|