Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-tables/table-intrinsic-size-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size.">
<style>
.outer {
width: min-content;
background: green;
}
.table {
writing-mode: vertical-rl;
display: table;
max-inline-size: 30px; /* Smaller than .content's inline size */
block-size: 100px;
border-inline: 10px solid green;
}
.content {
inline-size: 80px;
block-size: 100px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class="outer">
<div class="table">
<div class="content"></div>
</div>
</div>