| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css"> | 3 <style type="text/css"> |
| 4 body, div { | 4 body, div { |
| 5 margin: 0; | 5 margin: 0; |
| 6 padding: 0; | 6 padding: 0; |
| 7 border: 0; | 7 border: 0; |
| 8 } | 8 } |
| 9 #top, #bottom { | 9 #top, #bottom { |
| 10 line-height: 1.5; | 10 line-height: 1.5; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 description("This test checks that floating point rounding doesn't cause misalig
nment. There should be no gap between the divs."); | 35 description("This test checks that floating point rounding doesn't cause misalig
nment. There should be no gap between the divs."); |
| 36 | 36 |
| 37 var divtop = document.getElementById("top").getBoundingClientRect(); | 37 var divtop = document.getElementById("top").getBoundingClientRect(); |
| 38 var divbottom = document.getElementById("bottom").getBoundingClientRect(); | 38 var divbottom = document.getElementById("bottom").getBoundingClientRect(); |
| 39 shouldBe('Math.round(divtop.bottom)', '31'); | 39 shouldBe('Math.round(divtop.bottom)', '31'); |
| 40 shouldBe('Math.round(divbottom.top)', '31'); | 40 shouldBe('Math.round(divbottom.top)', '31'); |
| 41 | 41 |
| 42 </script> | 42 </script> |
| 43 | 43 |
| 44 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 45 | 44 |
| 46 </body> | 45 </body> |
| 47 </html> | 46 </html> |
| OLD | NEW |