Skip to content

Commit 85b5351

Browse files
committed
[css-tables] Clarify style of anon boxes (fix #1059)
1 parent 3483fe3 commit 85b5351

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

css-tables-3/Overview.bs

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ spec:css22; type:property; text:display
298298
a <a>table</a>/<a>inline-table</a> element,
299299
a <a>table-row</a> element, and
300300
a <a>table-cell</a> element.
301-
Missing elements cause the generation of anonymous boxes according to the following rules:
301+
Missing elements cause the generation of <a href="#fixup-boxes">anonymous boxes</a> according to the following rules:
302302

303303
<!--——————————————————————————————————————————————————————————————————————————-->
304304
<h4 id="fixup-algorithm">Fixup Algorithm</h4>
@@ -400,6 +400,19 @@ spec:css22; type:property; text:display
400400
If you find any mistakes due to these changes please file an issue
401401
</div>
402402

403+
<!--——————————————————————————————————————————————————————————————————————————-->
404+
<h4 id="fixup-boxes">Characteristics of fixup boxes</h4>
405+
406+
Beside their display type, the anonymous boxes created for fixup purposes
407+
do not receive any specific or default styling,
408+
except where otherwise mentioned by this specification.
409+
410+
This means
411+
their computed background is “transparent”,
412+
their computed padding is “0px”,
413+
their computed border-style is “none”, and
414+
inherited properties get their value from the closest element ancestor of the box.
415+
403416
<!--——————————————————————————————————————————————————————————————————————————-->
404417
<h4 id="fixup-examples">Examples</h4>
405418

@@ -685,16 +698,9 @@ spec:css22; type:property; text:display
685698
missing cells are rendered as if an anonymous table-cell box occupied their position in the grid
686699
(a "missing cell" is a cell in the row/column grid that is not occupied by an element or pseudo-element).
687700

688-
Once the amount of columns in a table is known, any table-row-group element must be modified such that
689-
each of its rows owns enough cells to fill all the columns of the table, when taking spanning into account.
690-
New table-cell anonymous boxes must be appended to its rows content until this condition is met.
691-
692-
Beside their display type, those anonymous boxes do not receive any specific or default styling,
693-
except where otherwise mentioned by this specification
694-
(meaning
695-
their background is “transparent”,
696-
their padding is “0px” and
697-
their border is “none” by default).
701+
Once the amount of columns in a table is known, any table-row box must be modified such that
702+
it owns enough cells to fill all the columns of the table, when taking spanning into account.
703+
New table-cell <a href="#fixup-boxes">anonymous boxes</a> must be appended to its rows content until this condition is met.
698704

699705
<!--——————————————————————————————————————————————————————————————————————————-->
700706
<h3 id="layout-modes">Table layout modes</h3>

0 commit comments

Comments
 (0)