inlines-005

CSS Inline Box Model: Wrapping Spaces Outside Inline Elements

WeasyPrint

This browser

Flags
interact

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: CSS Inline Box Model: Wrapping Spaces Outside Inline Elements</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/005.xml" type="application/xhtml+xml">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes">
 8   <meta name="flags" content="interact">
 9   <style type="text/css">
10    p > span { padding: 0.3em 0; line-height: 3; letter-spacing: 0.2em; }
11    span span { border: solid blue; color: gray; }
12   </style>
13  </head>
14  <body>
15 
16   <p>Resize your window slowly from a wide size to a narrow size. The
17  boxed Xs below should always be perfectly aligned in a grid.</p>
18 
19   <p> <span>
20    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
21    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
22    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
23    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
24    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
25    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
26    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
27    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
28    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
29    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
30    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
31    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
32    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
33    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
34    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
35    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
36    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
37    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
38    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
39    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
40    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
41    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
42    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
43    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
44    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
45    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
46    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
47    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
48    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
49    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
50    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
51    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
52    <span>X</span> <span>X</span> <span>X</span> <span>X</span>
53   </span> </p>
54 
55  </body>
56 </html>