Closed
Bug 723661
Opened 13 years ago
Closed 13 years ago
div containing img in standard mode: blank line after img
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: steffen.klee, Unassigned)
Details
Attachments
(1 file)
285 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
Build ID: 20120129021758
Steps to reproduce:
I placed an image in a bordered div tag under standard mode (<!DOCTYPE html>), setting margin (of image) and padding (of div) to zero.
Actual results:
A div containing the image is displayed. Although I didn't add any other content after the image to the div, a blank line is inserted. Setting the font-size to any value will change the size of the blank line (with 0 the line is gone).
Same behaviour in Firefox 9 and likely previous releases (didn't checked it exactly in < 9).
Expected results:
Correct me if I'm wrong, but shouldn't have the font-size no influence on elements, that do not contain any text?
Btw, in Quirks mode the blank line is gone.
Reporter | ||
Updated•13 years ago
|
Attachment #593930 -
Attachment mime type: text/plain → text/html
Comment 1•13 years ago
|
||
The rendering is correct. The bottom of the image sits on the text baseline, but the bottom of the div is below the font descent, so below the baseline.
This is well documented in the original bug on this and various articles...
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•