7 border:
10px solid black;
11 box-sizing:border-box;
12 -moz-box-sizing:border-box;
16 box-sizing:content-box;
17 -moz-box-sizing:content-box;
30 <div id=
"testContent">
31 <p id=
"t1" class=
"test css-inline-table border-box">120x120
<br>css-inline-table
<br>border-box
</p>
32 <p id=
"t2" class=
"test css-table border-box">120x120
<br>css-table
<br>border-box
</p>
33 <p id=
"t3" class=
"test css-inline-table content-box">120x120
<br>css-inline-table
<br>content-box
</p>
34 <p id=
"t4" class=
"test css-table content-box">120x120
<br>css-table
<br>content-box
</p>
36 <script src=
"../../resources/js-test.js"></script>
38 description("Test case for bug 89819. This tests CSS 'table' and 'inline-table' with box-sizing.");
40 shouldBe('document.getElementById("t1").offsetWidth', '120');
41 shouldBe('document.getElementById("t1").offsetHeight', '120');
42 shouldBe('document.getElementById("t2").offsetWidth', '120');
43 shouldBe('document.getElementById("t2").offsetHeight', '120');
44 shouldBe('document.getElementById("t3").offsetWidth', '140');
45 shouldBe('document.getElementById("t3").offsetHeight', '140');
46 shouldBe('document.getElementById("t4").offsetWidth', '140');
47 shouldBe('document.getElementById("t4").offsetHeight', '140');
49 document
.getElementById("testContent").style
.display
= 'none';