Commit 0deb60dd authored by wangxianzhu's avatar wangxianzhu Committed by Commit bot

Add a test for crbug.com/664887 (layout change with collapsed border)

BUG=664887

Review-Url: https://codereview.chromium.org/2533923002
Cr-Commit-Position: refs/heads/master@{#434767}
parent 87bb820f
<!DOCTYPE html>
<table style="border-collapse: collapse">
<tr>
<td id="target" style="width: 100px; height: 200px; border: 1px solid blue"></td>
</tr>
</table>
{
"layers": [
{
"name": "LayoutView #document",
"bounds": [800, 600],
"contentsOpaque": true,
"drawsContent": true,
"paintInvalidations": [
{
"object": "LayoutTableCell TD id='target'",
"rect": [8, 8, 104, 204],
"reason": "border box change"
}
]
}
],
"objectPaintInvalidations": [
{
"object": "LayoutTableCell TD id='target'",
"reason": "border box change"
}
]
}
<!DOCTYPE html>
<table style="border-collapse: collapse">
<tr>
<td id="target" style="width: 100px; height: 100px; border: 1px solid blue"></td>
</tr>
</table>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
target.style.height = '200px';
}
onload = runRepaintAndPixelTest;
</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