Open Bug 478859 Opened 16 years ago Updated 2 years ago

FF 3.1b2 incorrectly displays styled HTML list inside a table

Categories

(Core :: Layout, defect)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: novosibman, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 Product: FF 3.1.b2 In some cases the HTML UL/LI is displayed incorrectly inside table: - text can overlap with list ui element - test can go outside the table It was reproduced in our internal corporate site. I reduced HTML code up to minimal test case: =============== HTML CODE START ============================ <html><body> <table><tbody><tr> <td style="border: 1px solid ; padding: 4px;" bordercolor="#0860a8" bordercolorlight="#0860a8" bgcolor="#efefef"> OOO <ul> <li>MMM</li> <li><p style="margin-top: 0px; margin-bottom: 4px; margin-left: -20px;">EEE</p></li> </ul> AAA <ul style="padding-right: 4px; padding-left: 0px; font-size: 8pt; color: rgb(51, 51, 51); direction: ltr; font-family: Verdana; list-style-type: square;" type="square"> <li>MMM</li> <li><p style="margin-top: 0px; margin-bottom: 4px; margin-left: -20px;">EEE</p></li> </ul> </td> </tr></tbody></table> </body></html> =============== HTML CODE END ============================ Reproducible: Always Steps to Reproduce: 1. Create local HTML file from the code in details 2. Open HTML file in FF 3.1b2 3. Open HTML file in IE 6 4. Compare Actual Results: The displayed list will overlap with table borders in FF Expected Results: The displayed list should be displayed inside table
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
The Firefox rendering is what I would expect from the code given. Because there's a negative margin on the paragraph instead of the list item then the paragraph is going to overlap the list item bullet. And in the second list the default left padding for the UL is removed. And that combined with the negative margin is why the content is outside of the table.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: