Skip to content

[css-tables] Spec should probably be clearer about how, and whether, inheritance happens for table anonymous boxes #1059

Closed
@bzbarsky

Description

@bzbarsky

Consider this testcase:

<div style="border-spacing: 100px">
  <span style="display: table-cell">One</span>
  <span style="display: table-cell">Two</span>
</div>

What should the rendering look like and why? Per https://drafts.csswg.org/css-tables-3/#fixup-algorithm or https://www.w3.org/TR/CSS21/tables.html#anonymous-boxes we generate an anonymous table box here, but does it inherit the border-spacing value from the div? Is that even a meaningful thing to say, given that inheritance happens on elements, not boxes, and styles are attached to elements, not boxes, as far as I can tell?

Similar for various inherited properties that can affect anonymous table cells (e.g. text-indent).

@fantasai @tabatkins @FremyCompany

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions