Bug 1540567 [wpt PR 16120] - [css-tables] Test for height distribution after modifying layout tree, a=testonly

Automatic update from web-platform-tests
[css-tables] Test for height distribution after modifying layout tree

I don't foresee us fixing this until NG.

This is a test only, no behavior change.

Bug: 764031
Change-Id: I9afddd0bf09231d2f0981e75eb70e7ba1828ee58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542305
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645344}

--

wpt-commits: 4d956906ca1d5799369c468dde7888eb0b2e5ffb
wpt-pr: 16120
This commit is contained in:
David Grogan 2019-04-18 11:58:24 +00:00 коммит произвёл James Graham
Родитель adcf2158f0
Коммит b9c1f1c4ea
2 изменённых файлов: 68 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<style>
td, th {
border: 1px solid black;
}
</style>
<table>
<tr>
<th colspan="4">This cell must span all columns for repro in chrome</th>
</tr>
<tr>
<td rowspan="3" style="height:200px">A</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>

Просмотреть файл

@ -0,0 +1,43 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS2/visuren.html#display-prop">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=764031">
<link rel="match" href="toggle-row-display-property-001-ref.html">
<meta name="flags" content="" />
<meta name="assert" content="After setting display:table-row on tr elements with display:none, the table should look same as if display:none were never used." />
<style>
td, th {
border: 1px solid black;
}
tr {
display: none;
}
</style>
<table id=theTable>
<tr>
<th colspan="4">This cell must span all columns for repro in chrome</th>
</tr>
<tr>
<td rowspan="3" style="height:200px">A</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
<script>
theTable.offsetTop;
let rows = document.querySelectorAll('tr');
for (var i = 0; i < rows.length; i++) {
rows[i].style.display = 'table-row';
}
</script>