summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/values/units-005.xht
blob: 052b7e331920195fdf758f346a3d03bbd3b8b3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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>