|
Lines 3-10
This test zooms and scrolls the page and checks the positions of fixed-position
a/LayoutTests/fast/visual-viewport/zoomed-fixed-expected.txt_sec1
|
| 3 |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
3 |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 |
|
4 |
|
| 5 |
|
5 |
|
| 6 |
JSON.stringify(internals.layoutViewportRect()) is {"top":0,"right":785,"bottom":585,"left":0,"width":785,"height":585} |
6 |
JSON.stringify(internals.layoutViewportRect()) is {"x":0,"y":0,"width":785,"height":585,"top":0,"right":785,"bottom":585,"left":0} |
| 7 |
JSON.stringify(internals.visualViewportRect()) is {"top":0,"right":392.5,"bottom":292.5,"left":0,"width":392.5,"height":292.5} |
7 |
JSON.stringify(internals.visualViewportRect()) is {"x":0,"y":0,"width":392.5,"height":292.5,"top":0,"right":392.5,"bottom":292.5,"left":0} |
| 8 |
client rect of top: |
8 |
client rect of top: |
| 9 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":0,"y":0,"width":785,"height":100,"top":0,"right":785,"bottom":100,"left":0} |
9 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":0,"y":0,"width":785,"height":100,"top":0,"right":785,"bottom":100,"left":0} |
| 10 |
client rect of bottom: |
10 |
client rect of bottom: |
|
Lines 15-22
client rect of right:
a/LayoutTests/fast/visual-viewport/zoomed-fixed-expected.txt_sec2
|
| 15 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":685,"y":0,"width":100,"height":585,"top":0,"right":785,"bottom":585,"left":685} |
15 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":685,"y":0,"width":100,"height":585,"top":0,"right":785,"bottom":585,"left":685} |
| 16 |
|
16 |
|
| 17 |
Scrolled to 475, 525 |
17 |
Scrolled to 475, 525 |
| 18 |
JSON.stringify(internals.layoutViewportRect()) is {"top":232.5,"right":867.5,"bottom":817.5,"left":82.5,"width":785,"height":585} |
18 |
JSON.stringify(internals.layoutViewportRect()) is {"x":82.5,"y":232.5,"width":785,"height":585,"top":232.5,"right":867.5,"bottom":817.5,"left":82.5} |
| 19 |
JSON.stringify(internals.visualViewportRect()) is {"top":525,"right":867.5,"bottom":817.5,"left":475,"width":392.5,"height":292.5} |
19 |
JSON.stringify(internals.visualViewportRect()) is {"x":475,"y":525,"width":392.5,"height":292.5,"top":525,"right":867.5,"bottom":817.5,"left":475} |
| 20 |
client rect of top: |
20 |
client rect of top: |
| 21 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":-392.5,"y":-292.5,"width":785,"height":100,"top":-292.5,"right":392.5,"bottom":-192.5,"left":-392.5} |
21 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":-392.5,"y":-292.5,"width":785,"height":100,"top":-292.5,"right":392.5,"bottom":-192.5,"left":-392.5} |
| 22 |
client rect of bottom: |
22 |
client rect of bottom: |
|
Lines 27-34
client rect of right:
a/LayoutTests/fast/visual-viewport/zoomed-fixed-expected.txt_sec3
|
| 27 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":292.5,"y":-292.5,"width":100,"height":585,"top":-292.5,"right":392.5,"bottom":292.5,"left":292.5} |
27 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":292.5,"y":-292.5,"width":100,"height":585,"top":-292.5,"right":392.5,"bottom":292.5,"left":292.5} |
| 28 |
|
28 |
|
| 29 |
Scrolled to 100, 776 |
29 |
Scrolled to 100, 776 |
| 30 |
JSON.stringify(internals.layoutViewportRect()) is {"top":483.5,"right":867.5,"bottom":1068.5,"left":82.5,"width":785,"height":585} |
30 |
JSON.stringify(internals.layoutViewportRect()) is {"x":82.5,"y":483.5,"width":785,"height":585,"top":483.5,"right":867.5,"bottom":1068.5,"left":82.5} |
| 31 |
JSON.stringify(internals.visualViewportRect()) is {"top":776,"right":492.5,"bottom":1068.5,"left":100,"width":392.5,"height":292.5} |
31 |
JSON.stringify(internals.visualViewportRect()) is {"x":100,"y":776,"width":392.5,"height":292.5,"top":776,"right":492.5,"bottom":1068.5,"left":100} |
| 32 |
client rect of top: |
32 |
client rect of top: |
| 33 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":-17.5,"y":-292.5,"width":785,"height":100,"top":-292.5,"right":767.5,"bottom":-192.5,"left":-17.5} |
33 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":-17.5,"y":-292.5,"width":785,"height":100,"top":-292.5,"right":767.5,"bottom":-192.5,"left":-17.5} |
| 34 |
client rect of bottom: |
34 |
client rect of bottom: |
|
Lines 39-46
client rect of right:
a/LayoutTests/fast/visual-viewport/zoomed-fixed-expected.txt_sec4
|
| 39 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":667.5,"y":-292.5,"width":100,"height":585,"top":-292.5,"right":767.5,"bottom":292.5,"left":667.5} |
39 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":667.5,"y":-292.5,"width":100,"height":585,"top":-292.5,"right":767.5,"bottom":292.5,"left":667.5} |
| 40 |
|
40 |
|
| 41 |
Scrolled to 50, 300 |
41 |
Scrolled to 50, 300 |
| 42 |
JSON.stringify(internals.layoutViewportRect()) is {"top":300,"right":835,"bottom":885,"left":50,"width":785,"height":585} |
42 |
JSON.stringify(internals.layoutViewportRect()) is {"x":50,"y":300,"width":785,"height":585,"top":300,"right":835,"bottom":885,"left":50} |
| 43 |
JSON.stringify(internals.visualViewportRect()) is {"top":300,"right":442.5,"bottom":592.5,"left":50,"width":392.5,"height":292.5} |
43 |
JSON.stringify(internals.visualViewportRect()) is {"x":50,"y":300,"width":392.5,"height":292.5,"top":300,"right":442.5,"bottom":592.5,"left":50} |
| 44 |
client rect of top: |
44 |
client rect of top: |
| 45 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":0,"y":0,"width":785,"height":100,"top":0,"right":785,"bottom":100,"left":0} |
45 |
JSON.stringify(fixedElement.getBoundingClientRect()) is {"x":0,"y":0,"width":785,"height":100,"top":0,"right":785,"bottom":100,"left":0} |
| 46 |
client rect of bottom: |
46 |
client rect of bottom: |