OLD | NEW |
| (Empty) |
1 Simple intersection observer test with no explicit root and one document. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS entries.length is 0 | |
7 PASS entries.length is 1 | |
8 PASS entries[0].boundingClientRect.left is 8 | |
9 PASS entries[0].boundingClientRect.right is 108 | |
10 PASS entries[0].boundingClientRect.top is 408 | |
11 PASS entries[0].boundingClientRect.bottom is 508 | |
12 PASS entries[0].intersectionRect.left is 8 | |
13 PASS entries[0].intersectionRect.right is 108 | |
14 PASS entries[0].intersectionRect.top is 408 | |
15 PASS entries[0].intersectionRect.bottom is 508 | |
16 PASS entries[0].rootBounds.left is 0 | |
17 PASS entries[0].rootBounds.right is 785 | |
18 PASS entries[0].rootBounds.top is 0 | |
19 PASS entries[0].rootBounds.bottom is 600 | |
20 PASS entries[0].target is [object HTMLDivElement] | |
21 PASS entries[0].boundingClientRect is [object ClientRect] | |
22 PASS entries[0].intersectionRect is [object ClientRect] | |
23 PASS entries[0].rootBounds is [object ClientRect] | |
24 PASS entries.length is 2 | |
25 PASS entries[1].boundingClientRect.left is 8 | |
26 PASS entries[1].boundingClientRect.right is 108 | |
27 PASS entries[1].boundingClientRect.top is 608 | |
28 PASS entries[1].boundingClientRect.bottom is 708 | |
29 PASS entries[1].intersectionRect.left is 0 | |
30 PASS entries[1].intersectionRect.right is 0 | |
31 PASS entries[1].intersectionRect.top is 0 | |
32 PASS entries[1].intersectionRect.bottom is 0 | |
33 PASS entries[1].rootBounds.left is 0 | |
34 PASS entries[1].rootBounds.right is 785 | |
35 PASS entries[1].rootBounds.top is 0 | |
36 PASS entries[1].rootBounds.bottom is 600 | |
37 PASS entries[1].target is [object HTMLDivElement] | |
38 PASS successfullyParsed is true | |
39 | |
40 TEST COMPLETE | |
41 | |
OLD | NEW |