blob: 9c70d1470d7ca0169b28d1024c0ca3126d777715 [file] [log] [blame]
<!-- Based on fast/table/border-collapsing/cached-cell-append.html -->
Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
Here we append new cell, expect that cache is invalidated and paint produces expected image.
<link rel="stylesheet" href="../../../fast/table/border-collapsing/resources/cached.css">
<script src="resources/paint-invalidation-test.js"></script>
<script type="text/javascript">
window.expectedPaintInvalidationObjects = [
"LayoutTableCell TD",
"LayoutTableCell TD",
"LayoutTable TABLE",
"LayoutTableCell TD",
function paintInvalidationTest() {
newCell = document.createElement("td"); = "6px"; = "solid"; = "yellow";
<body onload="runPaintInvalidationTest()">
<table style="border-collapse:collapse; border:2px solid blue">
<tr id="row">
<td style="border:4px solid lime"/>