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