diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/values/units-001.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/values/units-001.xht | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/values/units-001.xht b/testing/web-platform/tests/css/CSS2/values/units-001.xht new file mode 100644 index 0000000000..a3e08e4543 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/values/units-001.xht @@ -0,0 +1,47 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Units: Equivalence</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" /> + <link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" /> + <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" /> + <link rel="match" href="units-001-ref.xht" /> + + <meta name="flags" content="ahem"/> + + <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> + <style type="text/css"> + table { font: 20px/1 Ahem; } + td { padding: 0; background: red; } + div { background: green; height: 1.25em; } + .px { width: 200px; } + .em { width: 10em; } + .ex { width: 12.5ex; } + .in { width: 2.08333in; } + .cm { width: 5.29166cm; } + .mm { width: 52.9166mm; } + .pt { width: 150pt; } + .pc { width: 12.5pc; } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <table> + <tr> + <td> + <div class="px"></div> + <div class="em"></div> + <div class="ex"></div> + <div class="in"></div> + <div class="cm"></div> + <div class="mm"></div> + <div class="pt"></div> + <div class="pc"></div> + </td> + </tr> + </table> + </body> +</html> |