robert@webkit.org | fc7763c | 2011-09-03 18:28:57 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style type="text/css"> |
| 4 | body {text-align:center;} |
| 5 | body * { |
| 6 | width: 80%; |
| 7 | } |
| 8 | body > div {background: blue;} |
| 9 | body > div > div {background: red;} |
| 10 | </style> |
| 11 | </head> |
| 12 | <!--A block with a block display type does not inherit alignment from its parent. |
| 13 | The red block should be aligned to the left.--> |
| 14 | <body> |
| 15 | <div style="position:relative;padding-bottom:200px;"> |
| 16 | <div style="height: 100%;position:absolute;"> |
| 17 | </div> |
| 18 | </div> |
| 19 | </body> |
| 20 | </html> |