c43-center-000.xht (2024B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Replaced Elements</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#replaced-elements"/> 7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style type="text/css"><![CDATA[ 11 div { margin: 0; background: url(support/swatch-red.png) center repeat-y; font-size: 10px; } 12 .a img { display: block; margin-right: auto; margin-left: auto; width: auto; } 13 .b { text-align: center; } 14 .b img { vertical-align: top; height: 20px; width: 20px; } 15 .c { text-align: center; font: 20px/1 Ahem; color: blue; } 16 ]]></style> 17 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property"/> 18 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" title="10.3.4 Block-level, replaced elements in normal flow"/> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" title="10.8 Line height calculations: the 'line-height' and 'vertical-align' properties"/> 20 <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'"/> 21 </head> 22 <body> 23 <p>There should be a single small column of blue below with no red:</p> 24 <div class="a"><img src="support/blue20x20.png" alt="FAIL: Replaced content did not get replaced."/></div> 25 <div class="b"><img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced."/></div> 26 <div class="c">X</div> 27 </body> 28 </html>