| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: CSS Blocks: Effect of Top Padding on Inline Layout</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-10-06 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/009.
xml" type="application/xhtml+xml"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties"
/> |
| 9 <link rel="match" href="blocks-019-ref.xht" /> |
| 10 |
| 11 <meta name="assert" content="Top padding on inline elements has no effect on l
ayout."/> |
| 12 <style type="text/css"> |
| 13 /* reset everything to be sure we don't introduce oddities */ |
| 14 div { border: 0; padding: 0; margin: 0; line-height: 1; |
| 15 display: block; width: 10em; } |
| 16 span { border: 0; padding: 0; margin: 0; line-height: 1; |
| 17 display: inline; white-space: nowrap; } |
| 18 |
| 19 /* the test */ |
| 20 body { margin-top: 12em; } |
| 21 div { background: red; } |
| 22 span.control { background: green; color: white; } |
| 23 span.test { padding-top: 10em; } |
| 24 </style> |
| 25 </head> |
| 26 <body> |
| 27 <div> |
| 28 <span class="test"><span class="control">Test passes if there is no red.</spa
n></span> |
| 29 </div> |
| 30 </body> |
| 31 </html> |
| OLD | NEW |