mirror of
https://github.com/servo/servo.git
synced 2025-09-17 02:18:23 +01:00
layout: Lay out collapsed table rows and columns, but don't paint them (#39027)
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. Testing: this change includes a new WPT crash test. Fixes: #37421. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
236e28aeab
commit
fc30a26005
6 changed files with 59 additions and 8 deletions
7
tests/wpt/meta/MANIFEST.json
vendored
7
tests/wpt/meta/MANIFEST.json
vendored
|
@ -5414,6 +5414,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"table-collapsed-row-or-column-crash.html": [
|
||||
"5a8bb7e5479e93b00d7d02731aa00a48a45269be",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"visibility-collapse-colspan-crash.html": [
|
||||
"591fbd9a9941648f1456b41aeee1e23ed660a1ed",
|
||||
[
|
||||
|
|
22
tests/wpt/tests/css/css-tables/table-collapsed-row-or-column-crash.html
vendored
Normal file
22
tests/wpt/tests/css/css-tables/table-collapsed-row-or-column-crash.html
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<link rel="help" href="https://github.com/servo/servo/issues/37421">
|
||||
|
||||
<div style="display: table; visibility: collapse">
|
||||
<div id="scroller" style="overflow: scroll"></div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="background: green; visibility: collapse">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td><div id="scroller2" style="overflow: scroll"></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
scroller.scrollTo();
|
||||
scroller2.scrollTo();
|
||||
</script>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue