-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathYGFlexBasisFitContentTest.html
More file actions
55 lines (50 loc) · 1.76 KB
/
Copy pathYGFlexBasisFitContentTest.html
File metadata and controls
55 lines (50 loc) · 1.76 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
<!-- Container child with content overflowing definite column parent.
Flex basis uses content size regardless of ExperimentalFeature state,
because FitContent and MaxContent produce the same result for containers. -->
<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 feature (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 feature. -->
<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>