chromium/third_party/blink/web_tests/css3/zoom-coords-expected.txt

Test
Test
Test

This test checks getBoundingClientRect() on zoomed HTML and SVG elements

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Gray rectangles: 100x50
Green rectangles: 100x50, zoom=200%
Blue rectangles: 200x100, zoom=50%


Checking HTML elements:


PASS div1.left is 0
PASS div1.top is 0
PASS div1.width is 100
PASS div1.height is 50
PASS div1.right is 100
PASS div1.bottom is 50


PASS div2.left is 0
PASS div2.top is 50
PASS div2.width is 200
PASS div2.height is 100
PASS div2.right is 200
PASS div2.bottom is 150


PASS div3.left is 0
PASS div3.top is 150
PASS div3.width is 100
PASS div3.height is 50
PASS div3.right is 100
PASS div3.bottom is 200


Checking SVG elements:


PASS svg1.left is 0
PASS svg1.top is 250
PASS svg1.width is 150
PASS svg1.height is 50
PASS svg1.right is 150
PASS svg1.bottom is 300
PASS rect1.left is 0
PASS rect1.top is 250
PASS rect1.width is 100
PASS rect1.height is 50
PASS rect1.right is 100
PASS rect1.bottom is 300
PASS image1.left is 100
PASS image1.top is 250
PASS image1.width is 50
PASS image1.height is 25
PASS image1.right is 150
PASS image1.bottom is 275
PASS text1.left is 100
PASS text1.top is within 1 of 283
PASS text1.height is within 1 of 6


PASS svg2.left is 150
PASS svg2.top is 200
PASS svg2.width is 300
PASS svg2.height is 100
PASS svg2.right is 450
PASS svg2.bottom is 300
PASS rect2.left is 150
PASS rect2.top is 200
PASS rect2.width is 200
PASS rect2.height is 100
PASS rect2.right is 350
PASS rect2.bottom is 300
PASS image2.left is 350
PASS image2.top is 200
PASS image2.width is 100
PASS image2.height is 50
PASS image2.right is 450
PASS image2.bottom is 250
PASS text2.left is 350
PASS text2.top is within 1 of 265
PASS text2.width is within 0.02 of (text1.width * 2)
PASS text2.height is within 0.02 of (text1.height * 2)


PASS svg3.left is 450
PASS svg3.top is 250
PASS svg3.width is 150
PASS svg3.height is 50
PASS svg3.right is 600
PASS svg3.bottom is 300
PASS rect3.left is 450
PASS rect3.top is 250
PASS rect3.width is 100
PASS rect3.height is 50
PASS rect3.right is 550
PASS rect3.bottom is 300
PASS image3.left is 550
PASS image3.top is 250
PASS image3.width is 50
PASS image3.height is 25
PASS image3.right is 600
PASS image3.bottom is 275
PASS text3.left is 550
PASS text3.top is within 1 of 282
PASS text3.width is within 0.02 of text1.width
PASS text3.height is within 0.02 of text1.height


PASS successfullyParsed is true

TEST COMPLETE