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.height is within 1 of 6
61 PASS svg2.width is 150
62 PASS svg2.height is 50
63 PASS svg2.right is 225
64 PASS svg2.bottom is 150
67 PASS rect2.width is 100
68 PASS rect2.height is 50
69 PASS rect2.right is 175
70 PASS rect2.bottom is 150
71 PASS image2.left is 175
72 PASS image2.top is 100
73 PASS image2.width is 50
74 PASS image2.height is 25
75 PASS image2.right is 225
76 PASS image2.bottom is 125
77 PASS text2.left is 175
78 PASS text2.top is within 1 of 132
79 PASS text2.width is within 0.02 of text1.width
80 PASS text2.height is within 0.02 of text1.height
84 PASS svg3.width is 300
85 PASS svg3.height is 100
86 PASS svg3.right is 1200
87 PASS svg3.bottom is 600
88 PASS rect3.left is 900
90 PASS rect3.width is 200
91 PASS rect3.height is 100
92 PASS rect3.right is 1100
93 PASS rect3.bottom is 600
94 PASS image3.left is 1100
95 PASS image3.top is 500
96 PASS image3.width is 100
97 PASS image3.height is 50
98 PASS image3.right is 1200
99 PASS image3.bottom is 550
100 PASS text3.left is 1100
101 PASS text3.top is within 1 of 565
102 PASS text3.width is within 0.02 of (text1.width * 2)
103 PASS text3.height is within 0.02 of (text1.height * 2)
105 PASS successfullyParsed is true