| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
| 3 <head> |
| 4 <title>CSS Test: Inline box model: space collapsing, padding, white-space, et
al</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/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-06-27 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/016
.html" type="text/html"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model"
/> |
| 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /
> |
| 10 <link rel="match" href="inlines-016-ref.xht" /> |
| 11 |
| 12 <meta name="flags" content="ahem"/> |
| 13 <meta name="assert" content="If a space (U+0020) at the beginning of a line |
| 14 has 'white-space' set to 'normal', then it is removed, even if there's paddi
ng."/> |
| 15 <style type="text/css"> |
| 16 div { width: 4em; background: teal; color: aqua; margin: 1em; font: 2.5em/1 A
hem; } |
| 17 .test span { padding-left: 1em; } |
| 18 .control { white-space: pre; } |
| 19 </style> |
| 20 </head> |
| 21 <body> |
| 22 <p>The following two blocks should be identical.</p> |
| 23 <div class="test"><span> XX</span></div> |
| 24 <div class="control"><span> XX</span></div> |
| 25 </body> |
| 26 </html> |
| OLD | NEW |