1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: Replaced Elements
</title>
5 <script src=
"../resources/ahem.js"></script>
6 <style type=
"text/css">
7 div
{ margin: 0; background: url
(support
/swatch-red
.png
) center repeat-y
; font-size: 10px; }
8 .a img { display: block
; margin-right: auto
; margin-left: auto
; width: auto
; }
9 .b { text-align: center
; }
10 .b img { vertical-align: top
; }
11 .c { text-align: center
; font: 15px Ahem
; color: blue
; }
13 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/text.html#alignment-prop" title=
"16.2 Alignment: the 'text-align' property">
14 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/colors.html#background-properties" title=
"14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'">
17 <p>There should be a single small column of blue below with no red:
</p>
18 <div class=
"a"><img alt=
"FAIL: Replaced content did not get replaced." src=
"support/swatch-blue.png"></div>
19 <div class=
"b"><img alt=
"FAIL: Replaced content did not get replaced." src=
"support/swatch-blue.png"></div>
20 <div class=
"c">X
</div>