blob: 3ed3687cf0e706aeceba8682ad05a1360ad86244 (
plain)
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
69
70
71
72
73
74
75
76
77
|
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<title>CSS Reftest Reference</title>
<meta charset="utf-8">
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.container {
display: flex;
flex-direction: row;
justify-content: space-between;
border: 2px solid purple;
padding: 2px;
margin-bottom: 2em;
height: 50px;
width: 200px;
}
.container > * {
flex-shrink: 0;
min-width: 0;
border: 2px solid teal;
}
.smallText { font: 10px Ahem; }
.bigText { font: 20px Ahem; }
.spacerChild::before {
content: '';
display: block;
background: brown;
height: 10px;
width: 10px;
}
.justPadding {
/* Empty div with 5px padding on each side */
padding: 5px;
background: cyan;
}
canvas { background: fuchsia }
</style>
</head>
<body>
<!-- Flex items have unspecified size properties: -->
<div class="container">
<div class="smallText">a b</div>
<div class="bigText">c</div>
<div class="spacerChild"></div>
<div class="justPadding"></div>
<canvas width="20"></canvas>
</div>
<!-- Various specified main-size values, in testcase
(removed here in reference case, because they shouldn't affect sizing): -->
<div class="container">
<div class="smallText">a b</div>
<div class="bigText">c</div>
<div class="spacerChild"></div>
<div class="justPadding"></div>
<canvas width="20"></canvas>
</div>
<!-- Various specified cross-size values (should be honored): -->
<div class="container">
<div class="smallText" style="height: 0px">a b</div>
<div class="bigText" style="height: 40px">c</div>
<div class="spacerChild" style="height: 20px"></div>
<div class="justPadding" style="height: 10px"></div>
<canvas width="20" style="height: 8px"></canvas>
</div>
</body>
</html>
|