| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| .container { width: 100px; height: 150px; position: relative;} |
| div { background: white; } |
| .reference { position: absolute; width: 20px; height: 20px; background: black; } |
| .second { left: 40px; top: 22px; } |
| <!-- In strict mode, images do not have their descent removed across line breaks. |
| Ensure the images find the correct offset for their line when avoiding floats. --> |
| There should be no red visible below. |
| <!-- This should cover the first image. --> |
| <div class="reference first"></div> |
| <!-- This should cover the second image. --> |
| <div class="reference second"></div> |