Skip to content

Commit ef5ef5e

Browse files
mrobinsonservo-wpt-sync
authored andcommitted
layout: Lay out collapsed table rows and columns, but don't paint them
It's expected that script queries be able to interact with collapsed table rows and columns, so this change starts laying them out. They still do not affect table dimensions, nor are they painted. This does not fix all interaction with collapsed rows and columns. For instance, setting scroll offsets of contained scrolling nodes does not work properly. It does fix the panic though, which is the most important thing. Signed-off-by: Martin Robinson <[email protected]>
1 parent 12faa8f commit ef5ef5e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
3+
<link rel="help" href="https://github.com/servo/servo/issues/37421">
4+
5+
<div style="display: table; visibility: collapse">
6+
<div id="scroller" style="overflow: scroll"></div>
7+
</div>
8+
9+
<table>
10+
<colgroup>
11+
<col style="background: green; visibility: collapse">
12+
</colgroup>
13+
<tr>
14+
<td><div id="scroller2" style="overflow: scroll"></div></td>
15+
</tr>
16+
</table>
17+
18+
<script>
19+
scroller.scrollTo();
20+
scroller2.scrollTo();
21+
</script>
22+

0 commit comments

Comments
 (0)