c43-rpl-bbx-002.xht (2122B)
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 6 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 8 <link rel="alternate" href="http://www.hixie.ch/tests/evil/css/css21/tests/t1004-c43-rpl-bbx-00-d-ag.htm" type="text/html"/> 9 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 10 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#replaced-elements"/> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" title="10.3.3 Block-level, non-replaced elements in normal flow"/> 12 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements"/> 13 <link rel="match" href="c43-rpl-bbx-002-ref.xht" /> 14 15 <meta name="flags" content="ahem image" /> 16 17 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 18 <style type="text/css"><![CDATA[ 19 div {margin: 1em;} 20 21 img 22 { 23 display: block; 24 margin-bottom: 5px; 25 } 26 27 span 28 { 29 background: red; 30 color: blue; 31 display: block; 32 font: 15px/1 Ahem; 33 width: 1em; 34 } 35 36 .b > img, .b > span 37 { 38 font-size: 3.75em; 39 height: 1em; 40 } 41 ]]></style> 42 </head> 43 <body> 44 <p> There should be <strong>no red</strong> anywhere. </p> 45 <p> There should be <strong>2 identical squares</strong> after this line: </p> 46 <div class="a"> 47 <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." /> 48 <span>X</span> 49 </div> 50 <p> There should be <strong>2 identical squares</strong> after this line: </p> 51 <div class="b"> 52 <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." /> 53 <span>X</span> 54 </div> 55 </body> 56 </html>