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.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 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
(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.