Closed
Bug 318533
Opened 19 years ago
Closed 16 years ago
styles "padding-top" and "padding-bottom" seem to be applied incorrectly (in table cells)
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: u20230201, Unassigned)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921
padding-top and padding-bottom when applied to stacked spans in a table cell seem to be applied in an unpredicted way. However Microsoft Internet Explorer 6 seems to do the same thing.
Reproducible: Always
Steps to Reproduce:
1. Load test case (attachment foo.html)
Actual Results:
Padding exceeds table cells
Expected Results:
Table cells should adjust to contents
Reporter | ||
Comment 1•19 years ago
|
||
The problem also occurs with Mozilla on Linux.
Version: unspecified → 1.0 Branch
Reporter | ||
Comment 2•19 years ago
|
||
The intention of the layout is to represent a time table of some kind with the yellow areas being appointments.
Reporter | ||
Comment 3•19 years ago
|
||
Reporter | ||
Comment 4•19 years ago
|
||
That version of Amaya (as well as the 8.2 version) renders the table as I would expect. However Amaya is terribly slow doing so...
Comment 5•19 years ago
|
||
Please attach testcases as html.
Updated•18 years ago
|
Product: Firefox → Core
QA Contact: general → general
Updated•18 years ago
|
Component: General → Layout
QA Contact: general → layout
Version: 1.0 Branch → Trunk
Even if Amaya is meant as some kind of reference implementation, I wouldn't take its rendering as definite. If you look closely, it doesn't render your page correctly.
However, Firefox does. Look, span elements are inline elements thus they take part in the line model. That simply means that vertical margin, border and paddings are rendered but not taken into account for the height calculation.
This simply means that the table cell only gets the height so the text in the last span is rendered inside. The yellow background-color is rendered outside because of the elements padding.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•