blob: 87ed94c776d22be3ea3f4fa27d09a89faa4b1720 [file] [log] [blame]
<!doctype html>
td {
width: 50px;
height: 50px;
padding: 0px;
background: lime;
<script src="../../resources/check-layout.js"></script>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script type="text/javascript">
function shrinkCellBorder() { = "4px";
runAfterLayoutAndPaint(shrinkCellBorder, true);
<p>Changing a cell's collapsed border's width should change the width of the sibling cells and the table.</p>
<p>There should be 3 squares. Outer two are lime, middle one is blue with a lightblue border.</p>
<p>Firefox 50.0a1 (nightly 2016-07-19) fails this, so it should probably be upstreamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p>
<table style="border-collapse:collapse" data-expected-width=158 data-expected-height=58>
<td data-expected-width=52></td>
<td style="background:blue; border:18px solid lightblue" id="middleCell" data-expected-width=54></td>
<td data-expected-width=52></td>