Skip to content

Commit 942a46a

Browse files
committed
[css-tables] Clarify that the bounding-box-assignment section applies to offset* properties
1 parent 714ac76 commit 942a46a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

css-tables-3/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,9 @@ spec:css-sizing-3; type:property; text:box-sizing
23632363
Once the width of each column and the height of each row of the table grid has been determined,
23642364
the final step of algorithm is to assign to each table-internal box its final position.
23652365

2366+
The width/height/left/top calculated below define the dimensions of the CSS Layout Box,
2367+
which means that they are accessible via the <a href="https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface">offset* properties</a> defined in CSSOM-VIEW.
2368+
23662369
The <a>table-wrapper</a> box is then sized such that
23672370
it contains the margin box of all <a>table-non-root</a> boxes
23682371
as well as the <a>table-root</a> border-box.
@@ -2409,6 +2412,14 @@ spec:css-sizing-3; type:property; text:box-sizing
24092412
and a table-column-group is considered to span all the rows.
24102413
</div>
24112414

2415+
<div class="note">
2416+
The above formula take in account 'border-spacing', and it might not be directly obvious what the effect of these mean, so here are a couple of properties of those formula:
2417+
<ul>
2418+
<li> the border-spacing before the first track or after the last track in a direction is not included in any track's or track-group's breadth.
2419+
<li> the border-spacing between tracks is not included in any track's breadth, but is included in the breadth of track-groups spanning both tracks.
2420+
</ul>
2421+
</div>
2422+
24122423
The <b>position of any table-caption having "bottom" as 'caption-side'</b> within the table is defined as the rectangle whose:
24132424

24142425
<ul class="compact">

0 commit comments

Comments
 (0)