diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/values/units-005.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/values/units-005.xht | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/values/units-005.xht b/testing/web-platform/tests/css/CSS2/values/units-005.xht new file mode 100644 index 0000000000..052b7e3319 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/values/units-005.xht @@ -0,0 +1,53 @@ +<!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"> + <head> + <title>CSS Test: Units: em (0.87em floats)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/005.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="match" href="units-005-ref.xht"/> + + <style type="text/css"> + div { width: 8.7em; height: 8.7em; background: red; border: solid lime; } + span { float: left; width: 0.87em; height: 0.87em; background: green; } + input[type="text"] { text-align: right; } + </style> + </head> + <body> + <p>You should see no red below, just a green square with a green border.</p> + <div> + <!-- 100 spans --> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + <span></span> <span></span> <span></span> <span></span> <span></span> + </div> + +<!-- Try different font sizes, zooms, and resolutions, as well as + slightly different sizes for the floats.</p> + <form action="" method="get"> + <p> + Set each float to width: <input type="text" name="size" value="${size}" size="5">em. + <input type="submit" value="Generate Test"> + </p> + </form> +--> + </body> +</html> |