summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/no-divide-by-0-with-tiny-heights.html
blob: da74068020b6d7839befc99fbd3513f8ff314f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<style>
table { border: 1px solid; width: 50px }
td { border: 1px solid }
#top  { height: .0005% }
#right { height: 200px }
#bottom  { height: .001% }
</style>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
</script>

This fixes a crash reported in <a href="https://crbug.com/570139">https://crbug.com/570139 - Floating-point-exception in blink::LayoutTableSection::distributeWholeExtraRowSpanHeightToPercentRows</a>.

<table>
    <tr>
        <td id="top"></td>
        <td id="right" rowspan=2></td>
    </tr>
    <tr>
        <td id="bottom"></td>
    </tr>
</table>