Closed Bug 1491226 Opened 7 years ago Closed 7 years ago

P in TD has no margins if contains an image

Categories

(Core :: Layout: Tables, defect)

62 Branch
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: niente0, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180830143136 Steps to reproduce: Here's a simple code: <table cellpadding="0" cellspacing="0"> <tr> <td> <p> <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"> </p></td> </tr> </table> <br><br> <p><img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"></p> Actual results: P outside table has top and bottom margins, P inside table hasn't them. Chrome correctly adds margins to P also inside table. Expected results: Top and bottom default margins should be added also to P inside TD
Component: Untriaged → Layout: Tables
Product: Firefox → Core
Chrome and Firefox appears to render the test the same for me. There are no margins in Quirks mode, and margins in Standards mode. Can you attach a small HTML file that demonstrates the difference you see please? (use the Attach File link the bug page).
Flags: needinfo?(niente0)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(niente0)
Resolution: --- → INVALID
I did tests on another machine, it works as expected. I don't know how to delete this bug, so I marked it Invalid.
OK, no worries.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.