robert@webkit.org | 0903cf5 | 2012-12-11 18:14:16 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <style> |
| 5 | body { width: 400px;} |
| 6 | .container { width: 100px; height: 150px; position: relative;} |
| 7 | .reference { position: absolute; width: 20px; height: 20px; background: black; } |
| 8 | .first { left: 40px; top: 4px; } |
| 9 | .second { top: 30px; } |
| 10 | </style> |
| 11 | </head> |
| 12 | <body> |
| 13 | <!-- In strict mode, images do not have their descent removed across line breaks. |
| 14 | Ensure the images find the correct offset for their line when avoiding floats. --> |
| 15 | There should be no red visible below. |
| 16 | <div class="container"> |
| 17 | <!-- This should cover the first image. --> |
| 18 | <div class="reference first"></div> |
| 19 | <!-- This should cover the second image. --> |
| 20 | <div class="reference second"></div> |
| 21 | </div> |
| 22 | </body></html> |