OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <link rel="stylesheet" href="../js/resources/js-test-style.css"> | 2 <link rel="stylesheet" href="../js/resources/js-test-style.css"> |
3 | 3 |
4 <style> | 4 <style> |
5 .styledForTest { | 5 .styledForTest { |
6 -moz-box-sizing: border-box; | 6 -moz-box-sizing: border-box; |
7 box-sizing: border-box; | 7 box-sizing: border-box; |
8 background-color: orange; | 8 background-color: orange; |
9 color: white; | 9 color: white; |
10 border: 7px solid black; | 10 border: 7px solid black; |
(...skipping 22 matching lines...) Expand all Loading... |
33 description('Tests that display: table-cell and box-sizing: border-box work when
used together.'); | 33 description('Tests that display: table-cell and box-sizing: border-box work when
used together.'); |
34 | 34 |
35 ['div-display-table-cell', 'td'].forEach(function (id) { | 35 ['div-display-table-cell', 'td'].forEach(function (id) { |
36 debug(id); | 36 debug(id); |
37 element = document.querySelector('#' + id); | 37 element = document.querySelector('#' + id); |
38 shouldBe('element.offsetWidth', '80'); | 38 shouldBe('element.offsetWidth', '80'); |
39 shouldBe('element.offsetHeight', '30'); | 39 shouldBe('element.offsetHeight', '30'); |
40 }); | 40 }); |
41 | 41 |
42 </script> | 42 </script> |
43 <script src="../js/resources/js-test-post.js"></script> | |
OLD | NEW |