-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathYGFlexBasisFitContentInMainAxisTest.html
More file actions
68 lines (62 loc) · 2.26 KB
/
YGFlexBasisFitContentInMainAxisTest.html
File metadata and controls
68 lines (62 loc) · 2.26 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!-- Container child with content overflowing definite column parent.
Without FlexBasisFitContentInMainAxis errata (corrected behavior),
flex basis uses MaxContent: child height = content height (500),
not capped by parent's available height. -->
<div id="container_child_overflows_definite_parent_column"
style="width: 200px; height: 300px;">
<div>
<div style="height: 500px; width: 50px;"></div>
</div>
</div>
<!-- Row variant: container child overflows definite row parent. -->
<div id="container_child_overflows_definite_parent_row"
style="width: 300px; height: 200px; flex-direction: row;">
<div>
<div style="width: 500px; height: 50px;"></div>
</div>
</div>
<!-- Container child content fits within parent bounds.
Same behavior with and without errata (no capping needed). -->
<div id="container_child_within_bounds_column"
style="width: 200px; height: 300px;">
<div>
<div style="height: 100px; width: 50px;"></div>
</div>
</div>
<!-- Multiple container children, both overflowing definite column parent. -->
<div id="multiple_container_children_overflow_column"
style="width: 200px; height: 300px;">
<div>
<div style="height: 400px;"></div>
</div>
<div>
<div style="height: 500px;"></div>
</div>
</div>
<!-- Scroll container: children always use MaxContent in main axis.
Same behavior with and without errata. -->
<div id="scroll_container_column"
style="width: 200px; height: 300px; overflow: scroll;">
<div>
<div style="height: 500px;"></div>
</div>
</div>
<!-- Mix of explicit-height child and overflowing container child. -->
<div id="explicit_and_container_children_column"
style="width: 200px; height: 300px;">
<div style="height: 100px;"></div>
<div>
<div style="height: 500px;"></div>
</div>
</div>
<!-- Items with flex-basis inside a scroll container's auto-height
content container. Without errata, flex-basis is respected even
when the content container's main axis size is indefinite (NaN).
With errata, flex-basis would be ignored. -->
<div id="flex_basis_in_scroll_content_container"
style="width: 200px; height: 300px; overflow: scroll;">
<div>
<div style="flex-basis: 200px;"></div>
<div style="flex-basis: 300px;"></div>
</div>
</div>