Padding not honored on floated table with border-collapse:collapse

RESOLVED INVALID

Status

()

Core
Layout: Tables
--
minor
RESOLVED INVALID
13 years ago
13 years ago

People

(Reporter: Jeremy Davis, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; @AB_CD@; rv:1.8a4) Gecko/20040924 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; @AB_CD@; rv:1.8a4) Gecko/20040924 Firefox/0.9.1+

When a table with border-collapse:collapse is floated, the padding is not
honored unless a display: rule is also set. This is in conflict with the CSS
spec (see http://www.w3.org/TR/REC-CSS1#float and
http://www.w3.org/TR/REC-CSS2/visuren.html#q24) which states that a floated
element is always considered to be equivalent to display:block.

Reproducible: Always
Steps to Reproduce:
1. Apply the rules border-collapse:collapse; float:left; padding: 50px; to a table.
2. Wonder why you don't get any padding.
3. Add display:block;
4. See the padding applied.

Actual Results:  
Padding isn't applied unless display: is set.

Expected Results:  
Padding should be applied even in the absence of the display: rule.
invalid per http://www.w3.org/TR/2004/CR-CSS21-20040225/visuren.html#dis-pos-flo
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
Though the sentence in
http://www.w3.org/TR/2004/CR-CSS21-20040225/tables.html#collapsing-borders just
before "Border Conflict Resolution" is needed too
(Reporter)

Comment 3

13 years ago
(In reply to comment #2)
Sorry. Thanks very much for clearing that up.

You need to log in before you can comment on or make changes to this bug.