blob: c2fff661832e7726a17e56bbf6fcf0a1062c1abf [file] [log] [blame]
ap9cd074c2006-01-05 20:48:53 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
thatcherffd46e02005-10-25 00:42:22 +00002<html>
3 <head>
4 <title>CSS 2.1 Test Suite: display/box/float/clear test</title>
5 <style type="text/css">
6html {
7font: 10px/1 Verdana, sans-serif;
8background-color: blue;
9color: white;
10}
11
12body {
13margin: 1.5em;
14border: .5em solid black;
15padding: 0;
16width: 48em;
17background-color: white;
18}
19
20dl {
21margin: 0;
22border: 0;
23padding: .5em;
24}
25
26dt {
27background-color: rgb(204,0,0);
28margin: 0;
29padding: 1em;
30width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50px */
31height: 28em;
32border: .5em solid black;
33float: left;
34}
35
36dd {
37float: right;
38margin: 0 0 0 1em;
39border: 1em solid black;
40padding: 1em;
41width: 34em;
42height: 27em;
43}
44
45ul {
46margin: 0;
47border: 0;
48padding: 0;
49}
50
51li {
52display: block; /* i.e., suppress marker */
53color: black;
54height: 9em;
55width: 5em;
56margin: 0;
57border: .5em solid black;
58padding: 1em;
59float: left;
60background-color: #FC0;
61}
62
63#bar {
64background-color: black;
65color: white;
66width: 41.17%; /* = 14em */
67border: 0;
68margin: 0 1em;
69}
70
71#baz {
72margin: 1em 0;
73border: 0;
74padding: 1em;
75width: 10em;
76height: 10em;
77background-color: black;
78color: white;
79}
80
81form {
82margin: 0;
83display: inline;
84}
85
86p {
87margin: 0;
88}
89
90form p {
91line-height: 1.9;
92}
93
94blockquote {
95margin: 1em 1em 1em 2em;
96border-width: 1em 1.5em 2em .5em;
97border-style: solid;
98border-color: black;
99padding: 1em 0;
100width: 5em;
101height: 9em;
102float: left;
103background-color: #FC0;
104color: black;
105}
106
107address {
108font-style: normal;
109}
110
111h1 {
112background-color: black;
113color: white;
114float: left;
115margin: 1em 0;
116border: 0;
117padding: 1em;
118width: 10em;
119height: 10em;
120font-weight: normal;
121font-size: 1em;
122}
123
124.a { color: #999999; }
125.b { color: #cc0000; }
126 </style>
darinec375482007-01-06 01:36:24 +0000127 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html" title="9 Visual formatting model">
thatcherffd46e02005-10-25 00:42:22 +0000128 </head>
129 <body>
130 <dl>
131 <dt>
132 toggle
133 </dt>
134 <dd>
135 <ul>
136 <li>
137 the way
138 </li>
139 <li id="bar">
140 <p>
141 the world ends
142 </p>
darinec375482007-01-06 01:36:24 +0000143 <form action="./" method="get">
thatcherffd46e02005-10-25 00:42:22 +0000144 <p>
145 bang
darinec375482007-01-06 01:36:24 +0000146 <input value="off" name="foo" type="radio">
thatcherffd46e02005-10-25 00:42:22 +0000147 </p>
148 <p>
149 whimper
darinec375482007-01-06 01:36:24 +0000150 <input value="on" name="foo2" type="radio">
thatcherffd46e02005-10-25 00:42:22 +0000151 </p>
152 </form>
153 </li>
154 <li>
155 i grow old
156 </li>
157 <li id="baz">
158 pluot?
159 </li>
160 </ul>
161 <blockquote>
162 <address>
163 bar maids,
164 </address>
165 </blockquote>
166 <h1>
167 sing to me, erbarme dich
168 </h1>
169 </dd>
170 </dl>
171 <p style="color: black; font-size: 1em; line-height: 1.3em; clear: both">
172 This is a nonsensical document, but syntactically valid HTML 4.0. All 100%-conformant CSS1 agents should be able to render the document elements above this paragraph indistinguishably (to the pixel) from this
173 <a href="support/css1test5526c.png" class="a">reference rendering,</a>
174 (except font rasterization and form widgets). All discrepancies should be traceable to CSS1 implementation shortcomings.
175 Please <a href="mailto:public-css-testsuite@w3.org" class="b">report any errors</a> you find between the CSS and the reference rendering.
176 </p>
177 </body>
178</html>