blob: 5a350033e3c974c08f58db8c444ff9e2953de480 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>The Second Acid Test (pixel-for-pixel reference version)</title>
<style type="text/css">
*
{
margin: 0;
padding: 0;
}
html
{
font: 12px sans-serif;
overflow: hidden;
color: red;
background: white;
}
#top
{
font: 2em / 24px sans-serif;
margin: 2em 3.5em 0;
text-align: left;
white-space: pre;
color: navy;
}
.picture
{
margin: 3em 1em 1em 6em;
}
.line
{
height: 1em;
border: 0 solid black;
background: yellow;
}
.one
{
width: 0;
margin-left: 5em;
border-width: 0 2em;
}
.two
{
width: 4em;
margin-left: 3em;
border-width: 0 2em;
}
.three
{
width: 8em;
margin-left: 2em;
border-width: 0 1em;
}
/* the eyes, in all their three-layer glory
these need to appear with both background layers as on hidpi displays
the two background layers don't just create a solid yellow background */
.eyes
{
position: relative;
width: 12em;
height: 2em;
margin-left: 1em;
background: red;
}
.eyes .lower
{
position: absolute;
z-index: 1; /* redundant, but make stacking explicit */
width: 9em;
height: 2em;
margin-left: 1em;
border-left: solid 1em yellow;
background: fixed url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAABnRSTlMAAAAAAABupgeRAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAEUlEQVR42mP4%2F58BCv7%2FZwAAHfAD%2FabwPj4AAAAASUVORK5CYII%3D');
}
.eyes .upper
{
position: absolute;
z-index: 2; /* redundant, but make stacking explicit */
width: 10em;
height: 2em;
margin-left: 0;
border: solid 1em black;
border-width: 0 1em;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAABnRSTlMAAAAAAABupgeRAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAEUlEQVR42mP4%2F58BCv7%2FZwAAHfAD%2FabwPj4AAAAASUVORK5CYII%3D') fixed 1px 0;
}
.eyes .img
{
position: absolute;
z-index: 3; /* redundant, but make stacking explicit */
width: 8em;
height: 2em;
margin-left: 2em;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAYCAYAAAFy7sgCAAAGsUlEQVRo3u2ZbWwcZxHHf3s%2B7LNbO3ZjXBtowprGODRX0qpNQCjmJKuVKhMl1P2AkCwhFOIKkCBSm9IXavGFKAixIAECwkmWo5MrhRI3Ub40IEwQgp6aIDg3Cd6eEqyIHEteah%2B1E69vhw%2BZtTaX8704ZzkKjHS6271nZ56ZZ%2BY%2F%2F%2BdZKF%2FCwYshx3EkkggLsD1v4FQkEZZYLCbAKyG9%2Ba9EIsG6hnUAf8x74K3aUC3j4%2BM54HcsR2oAIomwZOezkv%2FnSHpYNh%2BNCmAE7xv94zvFdd1bHsjMZmQkPSxAJP%2B%2FfuBLwK54PC7JZFKAVJmzXLBt2w%2FMvcDLwIb8QS8CeJ4nkURYIomw7J%2FYJ8BvSii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Wyr0u2rumO6zv%2B21AFdQAswC1wCMuUCXCmyWQus103Qg8qlDO0lxwOb%2Fl4FiK3AB3VS%2FuKKLtK%2FgbeAnwG%2FvUODuRw%2FFrR0H1UC75fwu8oJ%2FhFsW5VIG%2FBUgEIN6Y65O4AHu4Ap0zQ9y7LEcZyb9lRBUHQcRyzL8unZVBW5bFWAvAp%2BhDQ2g4F47dUYtlU6obXA54DnVdFLekjUGGifh4AFy7LEdV3xj3X9I66m0QZpGm2QrsOd0j%2B%2BU0bSw5KZzYjrun6HWlAd961i4FfCj0aN1Usau%2Bc1lmuXPFwvAEumUut7tQQvAb%2FXb%2FT0bCAej9cODg7yt%2Bm%2F8q2%2F7OUHZ76PnZ1k2p0mJzlykmPancbOTnL0whHs7CQfb%2B5mx2d3sH79%2BtCRI0c6FeaOr9ICrIQfLvA%2B8BGNXxi4R6HrisJVUWrxAVW2oMFf0Aczim8o3kV6enowDIPjF9%2Fk%2BMU3S3rrjzMMg56eHr%2BxP7qKFbASfojG6kpeDGs1tiW53RxwWT%2Bin5q8w4xpQK5evQpAR30H7ZH2khNvj7TTUd8BgD4rqmu1ZKX8qNeY%2BfHz4zlXDgT5E8tpCTUq7XSBC4Euv8227TV9fX1E73%2BYtvo27BmbS9cvFVTY3bSRFza9yOcf6Gfmygy7d%2B%2Fm%2FPnzF4DvrsBLhnJlJfwIKXxv1PheAE4qK6p4H9AGbNKTuhngBPBPXYRe4IemaT5kWZbR19fHNbmGnZ1k4r3U4glDR30Hm5qjbGjsImJEOHbsGHv27JFz5869o0eFq01Jq%2BmHAXwI6FFKagMTgHM7GzFDS%2BoeLSMv7zjzC9x4Y7gxFovVDAwMEI1GaWlpWSzRVCrFwYMH%2FXfxZ4AfAa8B%2F7lDaGg1%2FQgp43lfK0yqtRMuJa3ceKe5DfgYsCYAZ2ngD8CfAkzqTpW7xY%2F%2FSznyX%2FVeUb2kVmX4AAAAAElFTkSuQmCC');
}
/* lines six to nine are the nose
(note these are scarcely changed from the test as border anti-aliasing
quickly differs) */
.nose
{
width: 12em;
height: 4em;
margin-left: 0;
border-width: 0 1em;
}
.nose > div
{
height: 0;
padding: 1em 1em 3em;
background: yellow;
}
.nose div div
{
width: 2em;
height: 2em;
margin-left: 4em;
background: red;
}
.nose div:hover div:before
{
border-bottom-color: blue;
}
.nose div:hover div:after
{
border-top-color: blue;
}
.nose div div:before
{
display: block;
height: 0;
content: '';
border-width: 1em;
border-style: none solid solid;
border-color: red yellow black yellow;
}
.nose div div:after
{
display: block;
height: 0;
content: '';
border-width: 1em;
border-style: solid solid none;
border-color: black yellow red yellow;
}
/* lines ten and eleven are the smile */
.ten
{
width: 10em;
margin-left: 1em;
border-width: 0 1em;
}
.ten div
{
width: 6em;
height: 1em;
margin-left: 1em;
border: solid black;
border-width: 0 1em;
background: transparent;
}
.eleven
{
width: 10em;
margin-left: 1em;
border-width: 0 1em;
}
.eleven div
{
width: 6em;
height: 1em;
margin-left: 2em;
background: black;
}
/* bottom of the face */
.twelve
{
width: 8em;
margin-left: 2em;
border-width: 0 1em;
}
.thirteen
{
width: 4em;
margin-left: 3em;
border-width: 0 2em;
}
.fourteen
{
width: 0;
margin-left: 5em;
border-width: 0 2em;
}
</style>
</head>
<body>
<h2 id="top">Hello World!</h2>
<div class="picture">
<div class="line one"></div>
<div class="line two"></div>
<div class="line three"></div>
<div class="eyes"><div class=lower></div><div class=upper></div><div class=img></div></div>
<div class="line nose"><div><div></div></div></div>
<div class="line ten"><div></div></div>
<div class="line eleven"><div></div></div>
<div class="line twelve"></div>
<div class="line thirteen"></div>
<div class="line fourteen"></div>
</div>
</body>
</html>
|