summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/fixed-table-layout/column-box-sizing-fixed-table-layout.html
blob: 77ea7369441c1152541276b1890c1c2ed19eb561 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<style>
    table, .table {
        border-spacing: 0px;
        table-layout: fixed;
        width: 0px;
    }

    .table {
        display: table;
    }

    .td {
        display: table-cell;
    }

    .col {
        display: table-column;
    }

    td, .td {
        padding: 0px;
        height: 120px;
        border: 10px solid green;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    col, .col {
        width: 100px;
    }
</style>
<p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=87536">87536</a>: REGRESSION(r111742): box-sizing: border-box doesn't work on fixed table layout</p>
<p>Testing that a fixed width on a column should apply to the cell's border box.</p>
<p>You should see 4 100px * 100px cells with green borders.</p>
<table>
    <col></col>
    <col></col>
    <tbody>
        <td></td>
        <td></td>
    </tbody>
</table>
<div class="table">
    <div class="col"></div>
    <div class="col"></div>
    <div class="td"></div>
    <div class="td"></div>
</div>