"display: table" not rendered correctly

VERIFIED INVALID

Status

()

defect
P3
normal
VERIFIED INVALID
20 years ago
20 years ago

People

(Reporter: braden, Assigned: karnaze)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

()

Shouldn't "display: table" act like other block display styles in that it should expand to fill the width of its containing block box?

I realize that the current behavior probably needs to be retained for quirks mode, but it seems a better way of doing that would be to define table in ua.css as

table { display: inline-table }
table:before, table:after { content: "\A" }
Assignee: troy → karnaze
Component: Layout → HTMLTables
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
No.  The rules for widths of tables are different.  See
http://www.w3.org/TR/REC-CSS2/tables.html#width-layout

In particular, the sentence "However, if the maximum width required by the
columns plus cell spacing or borders (MAX) is less than that of the containing
block, use MAX."

Marking INVALID.
Okay, that's the part of the spec I was looking for when I submitted this but
didn't find. Thanks.
Status: RESOLVED → VERIFIED
Based on David's comments, marking as verified invalid.
You need to log in before you can comment on or make changes to this bug.