Commit 1871f3d4 authored by David Grogan's avatar David Grogan Committed by Commit Bot

[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/+/1542305Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645344}
parent 1e4624a9
......@@ -532,6 +532,7 @@ crbug.com/377847 external/wpt/css/css-tables/subpixel-table-cell-height-001.html
crbug.com/377847 external/wpt/css/css-tables/subpixel-table-cell-width-001.html [ Failure ]
crbug.com/377847 external/wpt/css/css-tables/subpixel-table-cell-width-002.html [ Failure ]
crbug.com/377847 external/wpt/css/css-tables/subpixel-table-width-001.html [ Failure ]
crbug.com/764031 external/wpt/css/css-tables/toggle-row-display-property-001.html [ Failure ]
# [css-contain]
......
<!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>
<!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>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment