| OLD | NEW |
| 1 Test | 1 Test |
| 2 Test | 2 Test |
| 3 Test | 3 Test |
| 4 This test checks getBoundingClientRect() on zoomed HTML and SVG elements | 4 This test checks getBoundingClientRect() on zoomed HTML and SVG elements |
| 5 | 5 |
| 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 7 | 7 |
| 8 Gray rectangles: 100x50 | 8 Gray rectangles: 100x50 |
| 9 Green rectangles: 100x50, zoom=200% | 9 Green rectangles: 100x50, zoom=200% |
| 10 Blue rectangles: 200x100, zoom=50% | 10 Blue rectangles: 200x100, zoom=50% |
| 11 | 11 |
| 12 Checking HTML elements: | 12 Checking HTML elements: |
| 13 | 13 |
| 14 PASS div1.left.toFixed(2) is "0.00" | 14 PASS div1.left is 0.00 |
| 15 PASS div1.top.toFixed(2) is "0.00" | 15 PASS div1.top is 0.00 |
| 16 PASS div1.width.toFixed(2) is "100.00" | 16 PASS div1.width is 100.00 |
| 17 PASS div1.height.toFixed(2) is "50.00" | 17 PASS div1.height is 50.00 |
| 18 PASS div1.right.toFixed(2) is "100.00" | 18 PASS div1.right is 100.00 |
| 19 PASS div1.bottom.toFixed(2) is "50.00" | 19 PASS div1.bottom is 50.00 |
| 20 | 20 |
| 21 PASS div2.left.toFixed(2) is "0.00" | 21 PASS div2.left is 0.00 |
| 22 PASS div2.top.toFixed(2) is "25.00" | 22 PASS div2.top is 25.00 |
| 23 PASS div2.width.toFixed(2) is "100.00" | 23 PASS div2.width is 100.00 |
| 24 PASS div2.height.toFixed(2) is "50.00" | 24 PASS div2.height is 50.00 |
| 25 PASS div2.right.toFixed(2) is "100.00" | 25 PASS div2.right is 100.00 |
| 26 PASS div2.bottom.toFixed(2) is "75.00" | 26 PASS div2.bottom is 75.00 |
| 27 | 27 |
| 28 PASS div3.left.toFixed(2) is "0.00" | 28 PASS div3.left is 0.00 |
| 29 PASS div3.top.toFixed(2) is "300.00" | 29 PASS div3.top is 300.00 |
| 30 PASS div3.width.toFixed(2) is "200.00" | 30 PASS div3.width is 200.00 |
| 31 PASS div3.height.toFixed(2) is "100.00" | 31 PASS div3.height is 100.00 |
| 32 PASS div3.right.toFixed(2) is "200.00" | 32 PASS div3.right is 200.00 |
| 33 PASS div3.bottom.toFixed(2) is "400.00" | 33 PASS div3.bottom is 400.00 |
| 34 | 34 |
| 35 Checking SVG elements: | 35 Checking SVG elements: |
| 36 | 36 |
| 37 PASS svg1.left.toFixed(2) is "0.00" | 37 PASS svg1.left is 0.00 |
| 38 PASS svg1.top.toFixed(2) is "250.00" | 38 PASS svg1.top is 250.00 |
| 39 PASS svg1.width.toFixed(2) is "150.00" | 39 PASS svg1.width is 150.00 |
| 40 PASS svg1.height.toFixed(2) is "50.00" | 40 PASS svg1.height is 50.00 |
| 41 PASS svg1.right.toFixed(2) is "150.00" | 41 PASS svg1.right is 150.00 |
| 42 PASS svg1.bottom.toFixed(2) is "300.00" | 42 PASS svg1.bottom is 300.00 |
| 43 PASS rect1.left.toFixed(2) is "0.00" | 43 PASS rect1.left is 0.00 |
| 44 PASS rect1.top.toFixed(2) is "250.00" | 44 PASS rect1.top is 250.00 |
| 45 PASS rect1.width.toFixed(2) is "100.00" | 45 PASS rect1.width is 100.00 |
| 46 PASS rect1.height.toFixed(2) is "50.00" | 46 PASS rect1.height is 50.00 |
| 47 PASS rect1.right.toFixed(2) is "100.00" | 47 PASS rect1.right is 100.00 |
| 48 PASS rect1.bottom.toFixed(2) is "300.00" | 48 PASS rect1.bottom is 300.00 |
| 49 PASS image1.left.toFixed(2) is "100.00" | 49 PASS image1.left is 100.00 |
| 50 PASS image1.top.toFixed(2) is "250.00" | 50 PASS image1.top is 250.00 |
| 51 PASS image1.width.toFixed(2) is "50.00" | 51 PASS image1.width is 50.00 |
| 52 PASS image1.height.toFixed(2) is "25.00" | 52 PASS image1.height is 25.00 |
| 53 PASS image1.right.toFixed(2) is "150.00" | 53 PASS image1.right is 150.00 |
| 54 PASS image1.bottom.toFixed(2) is "275.00" | 54 PASS image1.bottom is 275.00 |
| 55 PASS text1.left.toFixed(2) is "100.00" | 55 PASS text1.left is 100.00 |
| 56 PASS text1.top.toFixed(2) is "282.66" | 56 PASS text1.top is 282.66 |
| 57 PASS text1.width.toFixed(2) is "49.20" | 57 FAIL text1.width should be 47.98. Was 49.203128814697266. |
| 58 PASS text1.height.toFixed(2) is "6.16" | 58 PASS text1.height is 6.16 |
| 59 PASS text1.right.toFixed(2) is "149.20" | 59 FAIL text1.right should be 147.98. Was 149.203125. |
| 60 PASS text1.bottom.toFixed(2) is "288.82" | 60 PASS text1.bottom is 288.82 |
| 61 | 61 |
| 62 PASS svg2.left.toFixed(2) is "75.00" | 62 PASS svg2.left is 75.00 |
| 63 PASS svg2.top.toFixed(2) is "100.00" | 63 PASS svg2.top is 100.00 |
| 64 PASS svg2.width.toFixed(2) is "150.00" | 64 PASS svg2.width is 150.00 |
| 65 PASS svg2.height.toFixed(2) is "50.00" | 65 PASS svg2.height is 50.00 |
| 66 PASS svg2.right.toFixed(2) is "225.00" | 66 PASS svg2.right is 225.00 |
| 67 PASS svg2.bottom.toFixed(2) is "150.00" | 67 PASS svg2.bottom is 150.00 |
| 68 PASS rect2.left.toFixed(2) is "75.00" | 68 PASS rect2.left is 75.00 |
| 69 PASS rect2.top.toFixed(2) is "100.00" | 69 PASS rect2.top is 100.00 |
| 70 PASS rect2.width.toFixed(2) is "100.00" | 70 PASS rect2.width is 100.00 |
| 71 PASS rect2.height.toFixed(2) is "50.00" | 71 PASS rect2.height is 50.00 |
| 72 PASS rect2.right.toFixed(2) is "175.00" | 72 PASS rect2.right is 175.00 |
| 73 PASS rect2.bottom.toFixed(2) is "150.00" | 73 PASS rect2.bottom is 150.00 |
| 74 PASS image2.left.toFixed(2) is "175.00" | 74 PASS image2.left is 175.00 |
| 75 PASS image2.top.toFixed(2) is "100.00" | 75 PASS image2.top is 100.00 |
| 76 PASS image2.width.toFixed(2) is "50.00" | 76 PASS image2.width is 50.00 |
| 77 PASS image2.height.toFixed(2) is "25.00" | 77 PASS image2.height is 25.00 |
| 78 PASS image2.right.toFixed(2) is "225.00" | 78 PASS image2.right is 225.00 |
| 79 PASS image2.bottom.toFixed(2) is "125.00" | 79 PASS image2.bottom is 125.00 |
| 80 PASS text2.left.toFixed(2) is "175.00" | 80 PASS text2.left is 175.00 |
| 81 PASS text2.top.toFixed(2) is "132.66" | 81 PASS text2.top is 132.66 |
| 82 PASS text2.width.toFixed(2) is "47.44" | 82 FAIL text2.width should be 47.98. Was 47.437496185302734. |
| 83 PASS text2.height.toFixed(2) is "5.94" | 83 PASS text2.height is 5.94 |
| 84 PASS text2.right.toFixed(2) is "222.44" | 84 FAIL text2.right should be 222.98. Was 222.4375. |
| 85 PASS text2.bottom.toFixed(2) is "138.60" | 85 PASS text2.bottom is 138.60 |
| 86 | 86 |
| 87 PASS svg3.left.toFixed(2) is "900.00" | 87 PASS svg3.left is 900.00 |
| 88 PASS svg3.top.toFixed(2) is "500.00" | 88 PASS svg3.top is 500.00 |
| 89 PASS svg3.width.toFixed(2) is "300.00" | 89 PASS svg3.width is 300.00 |
| 90 PASS svg3.height.toFixed(2) is "100.00" | 90 PASS svg3.height is 100.00 |
| 91 PASS svg3.right.toFixed(2) is "1200.00" | 91 PASS svg3.right is 1200.00 |
| 92 PASS svg3.bottom.toFixed(2) is "600.00" | 92 PASS svg3.bottom is 600.00 |
| 93 PASS rect3.left.toFixed(2) is "900.00" | 93 PASS rect3.left is 900.00 |
| 94 PASS rect3.top.toFixed(2) is "500.00" | 94 PASS rect3.top is 500.00 |
| 95 PASS rect3.width.toFixed(2) is "200.00" | 95 PASS rect3.width is 200.00 |
| 96 PASS rect3.height.toFixed(2) is "100.00" | 96 PASS rect3.height is 100.00 |
| 97 PASS rect3.right.toFixed(2) is "1100.00" | 97 PASS rect3.right is 1100.00 |
| 98 PASS rect3.bottom.toFixed(2) is "600.00" | 98 PASS rect3.bottom is 600.00 |
| 99 PASS image3.left.toFixed(2) is "1100.00" | 99 PASS image3.left is 1100.00 |
| 100 PASS image3.top.toFixed(2) is "500.00" | 100 PASS image3.top is 500.00 |
| 101 PASS image3.width.toFixed(2) is "100.00" | 101 PASS image3.width is 100.00 |
| 102 PASS image3.height.toFixed(2) is "50.00" | 102 PASS image3.height is 50.00 |
| 103 PASS image3.right.toFixed(2) is "1200.00" | 103 PASS image3.right is 1200.00 |
| 104 PASS image3.bottom.toFixed(2) is "550.00" | 104 PASS image3.bottom is 550.00 |
| 105 PASS text3.left.toFixed(2) is "1100.00" | 105 PASS text3.left is 1100.00 |
| 106 PASS text3.top.toFixed(2) is "565.33" | 106 PASS text3.top is 565.33 |
| 107 PASS text3.width.toFixed(2) is "98.41" | 107 FAIL text3.width should be 95.97. Was 98.40630340576172. |
| 108 PASS text3.height.toFixed(2) is "12.31" | 108 PASS text3.height is 12.31 |
| 109 PASS text3.right.toFixed(2) is "1198.41" | 109 FAIL text3.right should be 1195.97. Was 1198.40625. |
| 110 PASS text3.bottom.toFixed(2) is "577.64" | 110 PASS text3.bottom is 577.64 |
| 111 | 111 |
| 112 PASS successfullyParsed is true | 112 PASS successfullyParsed is true |
| 113 | 113 |
| 114 TEST COMPLETE | 114 TEST COMPLETE |
| 115 | 115 |
| OLD | NEW |