blob: 6cf0e4ad867d579d883bc1da261df00aa5c026bc (
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
78
79
80
81
82
83
84
85
86
87
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Reftest Reference</title>
<link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu">
<style>
button {
border: 1em solid green;
margin: 0;
/* In case the testcase's 'inner' text is taller than the button, don't let
it influence its line-box's size. This lets us more-easily compare
sizing between empty buttons vs. contained nonempty buttons. */
vertical-align: top;
}
.vaBaseline {
vertical-align: baseline;
}
.width-ref {
width: 50px;
}
.height-ref {
height: 50px;
background: lightblue;
}
.floatLBasic-ref {
float: left;
}
.floatLWidth-ref {
float: left;
width: 50px;
}
br { clear: both }
.iFlexBasic-ref {
display: inline-flex;
}
.iFlexWidth-ref {
display: inline-flex;
width: 50px;
}
.innerContents {
color: transparent;
height: 0;
width: 0;
}
.orthog-ref {
writing-mode: vertical-lr;
}
</style>
</head>
<body>
<button></button>
<br>
<button class="floatLBasic-ref"></button>
<br>
<button class="floatLWidth-ref"></button>
<br>
<button class="iFlexBasic-ref"></button>
<br>
<button class="iFlexWidth-ref"></button>
<br>
outside before<button class="vaBaseline"><div class="innerContents">inner</div></button>outside after
<br>
<button class="width-ref"></button>
<br>
<button class="width-ref"></button>
<br>
<button class="height-ref"></button>
<br>
<button class="height-ref"></button>
<br>
s<button class="orthog-ref vaBaseline"><div class="innerContents">inner</div></button>endtext
<br>
<button class="height-ref width-ref">inside</button>
</body>
</html>
|