height-computed-001-ref.xht (894B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 <title>CSS Reference File</title> 7 <link rel="author" title="Bert Bos" href="mailto:bert@w3.org" /> 8 9 <style type="text/css"><![CDATA[ 10 body {background: white; color: black; font-size: 14px} 11 span {display: inline-block} 12 #container {background: green; height: 70px; min-height: 140px} 13 #child1 {background: #66F; width: 70px; height: 70px} 14 #child2 {background: #AAF; width: 70px; height: 70px} 15 ]]></style> 16 </head> 17 18 <body> 19 <p>Test passes if (1) the two blue rectangles have the same height 20 and (2) that height is about the same as the green rectangle.</p> 21 22 <p> 23 <span id="container"> 24 <span id="child1"></span><span id="child2"></span> 25 </span> 26 </p> 27 </body> 28 </html>