summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/min-max-width-preferred-size.html
blob: d7d1870a37344f526c0b157339a20da81d4d64fd (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
<style>
.child {
    width: 75px;
    height: 20px;
    background-color: salmon;
    display: inline-block;
}
.container {
    display: inline-block;
    border: 5px solid grey;
}
table {
    background-color: pink;
}
</style>

<div class="container" data-expected-width=210>
    <table style="max-width: 200px">
        <td>
            <div class="child"></div>
            <div class="child"></div>
            <div class="child"></div>
        </td>
    </table>
</div>
<br>

<div class="container" data-expected-width=210>
    <table style="width: 100px; min-width: 200px; table-layout: fixed"><td><div class="child"></div></td></table>
</div>

<script src="../../resources/check-layout.js"></script>
<script>
checkLayout('.container');
</script>