units-001.xht (1695B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 3 <head> 4 <title>CSS Test: Units: Equivalence</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/001.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" /> 9 <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" /> 10 <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" /> 11 <link rel="match" href="units-001-ref.xht" /> 12 13 <meta name="flags" content="ahem"/> 14 15 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 16 <style type="text/css"> 17 table { font: 20px/1 Ahem; } 18 td { padding: 0; background: red; } 19 div { background: green; height: 1.25em; } 20 .px { width: 200px; } 21 .em { width: 10em; } 22 .ex { width: 12.5ex; } 23 .in { width: 2.08333in; } 24 .cm { width: 5.29166cm; } 25 .mm { width: 52.9166mm; } 26 .pt { width: 150pt; } 27 .pc { width: 12.5pc; } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 32 <table> 33 <tr> 34 <td> 35 <div class="px"></div> 36 <div class="em"></div> 37 <div class="ex"></div> 38 <div class="in"></div> 39 <div class="cm"></div> 40 <div class="mm"></div> 41 <div class="pt"></div> 42 <div class="pc"></div> 43 </td> 44 </tr> 45 </table> 46 </body> 47 </html>