4 This test checks getBoundingClientRect() on zoomed HTML and SVG elements
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
8 Gray rectangles: 100x50
9 Green rectangles: 100x50, zoom=200%
10 Blue rectangles: 200x100, zoom=50%
12 Checking HTML elements:
16 PASS div1.width is 100
17 PASS div1.height is 50
18 PASS div1.right is 100
19 PASS div1.bottom is 50
23 PASS div2.width is 100
24 PASS div2.height is 50
25 PASS div2.right is 100
26 PASS div2.bottom is 75
30 PASS div3.width is 200
31 PASS div3.height is 100
32 PASS div3.right is 200
33 PASS div3.bottom is 400
35 Checking SVG elements:
39 PASS svg1.width is 150
40 PASS svg1.height is 50
41 PASS svg1.right is 150
42 PASS svg1.bottom is 300
45 PASS rect1.width is 100
46 PASS rect1.height is 50
47 PASS rect1.right is 100
48 PASS rect1.bottom is 300
49 PASS image1.left is 100
50 PASS image1.top is 250
51 PASS image1.width is 50
52 PASS image1.height is 25
53 PASS image1.right is 150
54 PASS image1.bottom is 275
55 PASS text1.left is 100
56 PASS text1.top is within 1 of 283
57 PASS text1.width is within 1 of 46
58 PASS text1.height is within 1 of 6
59 PASS text1.right is within 1 of 146
60 PASS text1.bottom is within 1 of 289
64 PASS svg2.width is 150
65 PASS svg2.height is 50
66 PASS svg2.right is 225
67 PASS svg2.bottom is 150
70 PASS rect2.width is 100
71 PASS rect2.height is 50
72 PASS rect2.right is 175
73 PASS rect2.bottom is 150
74 PASS image2.left is 175
75 PASS image2.top is 100
76 PASS image2.width is 50
77 PASS image2.height is 25
78 PASS image2.right is 225
79 PASS image2.bottom is 125
80 PASS text2.left is 175
81 PASS text2.top is within 1 of 132
82 PASS text2.width is within 1 of 49
83 PASS text2.height is within 1 of 6
84 PASS text2.right is within 1 of 224
85 PASS text2.bottom is within 1 of 139
89 PASS svg3.width is 300
90 PASS svg3.height is 100
91 PASS svg3.right is 1200
92 PASS svg3.bottom is 600
93 PASS rect3.left is 900
95 PASS rect3.width is 200
96 PASS rect3.height is 100
97 PASS rect3.right is 1100
98 PASS rect3.bottom is 600
99 PASS image3.left is 1100
100 PASS image3.top is 500
101 PASS image3.width is 100
102 PASS image3.height is 50
103 PASS image3.right is 1200
104 PASS image3.bottom is 550
105 PASS text3.left is 1100
106 PASS text3.top is within 1 of 565
107 PASS text3.width is within 1 of 92
108 PASS text3.height is within 1 of 12
109 PASS text3.right is within 1 of 1192
110 PASS text3.bottom is within 1 of 577
112 PASS successfullyParsed is true