Skip to content

Commit 47436a2

Browse files
committed
[css-tables] Fixed visibility:collapse + position:absolute
1 parent 7e4647b commit 47436a2

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

css-tables-3/Overview.bs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2326,12 +2326,19 @@ With a table-root as containing block</h3>
23262326
</div>
23272327

23282328
<h3 id="abspos-boxes-in-table-internal">
2329-
With a table-track or table-track-group as containing block</h3>
2329+
With a table-internal as containing block</h3>
23302330

23312331
If an absolutely positioned element's <a>containing block</a>
23322332
is generated by a <a>table-internal</a>,
2333-
the containing block corresponds to <a href="#bounding-box-assignment">the area defined for the box during layout</a>,
2334-
(these elements cannot have a border or padding, so they always refer to that area in its entirety).
2333+
the containing block corresponds to the area starting at the top left corner of the <a href="#bounding-box-assignment">the area that would be assigned to the box during layout</a>
2334+
but whose size is computed to be the one of <a href="#bounding-box-assignment">the area that would be assigned to the box during layout</a>
2335+
if all tracks were considered visible (irrespective of 'visibility' being set co collapse on some boxes),
2336+
not including borders and paddings as appropriate.
2337+
2338+
<div class="note">
2339+
This is done so that hiding column does not trigger a layout in the absolutely-positioned boxes, and the content being clipped doesn't seem to be moving.
2340+
<a class="hint" href="https://wptest.center/#/uxin57">!!Testcase</a>
2341+
</div>
23352342

23362343
The offset properties ('top'/'right'/'bottom'/'left')
23372344
then indicate offsets inwards from the corresponding edges

0 commit comments

Comments
 (0)