-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathtable-intrinsic-size-001.html
More file actions
32 lines (30 loc) · 920 Bytes
/
table-intrinsic-size-001.html
File metadata and controls
32 lines (30 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056">
<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 {
display: table;
inline-size: 30px; /* Smaller than .content's inline size */
block-size: 100px;
border-inline: 10px solid green;
margin-inline: 10px;
}
.content {
inline-size: 60px;
height: 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>