c43-rpl-ibx-000.xht (1933B)
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="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 8 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 9 <link rel="alternate" href="http://www.hixie.ch/tests/evil/css/css21/tests/t1004-c43-rpl-ibx-00-d-ag.htm" type="text/html"/> 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#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"/> 12 <link rel="match" href="c43-rpl-ibx-000-ref.xht" /> 13 14 <meta name="flags" content="ahem image" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 strong {line-height: 1;} 19 20 span 21 { 22 background: red; 23 color: blue; 24 font: 15px/1 Ahem; 25 vertical-align: top; 26 } 27 28 .b > img 29 { 30 font-size: 3.75em; 31 height: 1em; 32 } 33 34 .b > span {font-size: 3.75em;} 35 ]]></style> 36 </head> 37 <body> 38 <p>There should be <strong>no red</strong> anywhere.</p> 39 <p class="a"> 40 There should be <strong>2 identical squares</strong> at the end of this line: 41 <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." /> 42 <span>X</span> 43 </p> 44 <p class="b"> 45 There should be <strong>2 identical squares</strong> at the end of this line: 46 <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced." /> 47 <span>X</span> 48 </p> 49 </body> 50 </html>