OLD | NEW |
1 Simple intersection observer test with explicit root and target in the same docu
ment. | 1 Test that notifications are sent correctly when root and/or target are removed f
rom the DOM tree. |
2 | 2 |
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 PASS entries.length is 0 | 6 PASS entries.length is 0 |
7 PASS entries.length is 0 | |
8 PASS entries.length is 0 | |
9 PASS entries.length is 1 | 7 PASS entries.length is 1 |
10 PASS entries[0].boundingClientRect.left is 11 | 8 PASS entries[0].boundingClientRect.left is 11 |
11 PASS entries[0].boundingClientRect.right is 111 | 9 PASS entries[0].boundingClientRect.right is 111 |
12 PASS entries[0].boundingClientRect.top is 261 | 10 PASS entries[0].boundingClientRect.top is 161 |
13 PASS entries[0].boundingClientRect.bottom is 361 | 11 PASS entries[0].boundingClientRect.bottom is 261 |
14 PASS entries[0].intersectionRect.left is 11 | 12 PASS entries[0].intersectionRect.left is 11 |
15 PASS entries[0].intersectionRect.right is 111 | 13 PASS entries[0].intersectionRect.right is 111 |
16 PASS entries[0].intersectionRect.top is 261 | 14 PASS entries[0].intersectionRect.top is 161 |
17 PASS entries[0].intersectionRect.bottom is 311 | 15 PASS entries[0].intersectionRect.bottom is 211 |
18 PASS entries[0].rootBounds.left is 11 | 16 PASS entries[0].rootBounds.left is 11 |
19 PASS entries[0].rootBounds.right is 111 | 17 PASS entries[0].rootBounds.right is 111 |
20 PASS entries[0].rootBounds.top is 111 | 18 PASS entries[0].rootBounds.top is 11 |
21 PASS entries[0].rootBounds.bottom is 311 | 19 PASS entries[0].rootBounds.bottom is 211 |
22 PASS entries[0].target is [object HTMLDivElement] | 20 PASS entries[0].target is [object HTMLDivElement] |
23 PASS entries.length is 1 | |
24 PASS entries.length is 2 | 21 PASS entries.length is 2 |
25 PASS entries[1].boundingClientRect.left is 11 | 22 PASS entries[1].boundingClientRect.left is 0 |
26 PASS entries[1].boundingClientRect.right is 111 | 23 PASS entries[1].boundingClientRect.right is 0 |
27 PASS entries[1].boundingClientRect.top is 1011 | 24 PASS entries[1].boundingClientRect.top is 0 |
28 PASS entries[1].boundingClientRect.bottom is 1111 | 25 PASS entries[1].boundingClientRect.bottom is 0 |
29 PASS entries[1].intersectionRect.left is 0 | 26 PASS entries[1].intersectionRect.left is 0 |
30 PASS entries[1].intersectionRect.right is 0 | 27 PASS entries[1].intersectionRect.right is 0 |
31 PASS entries[1].intersectionRect.top is 0 | 28 PASS entries[1].intersectionRect.top is 0 |
32 PASS entries[1].intersectionRect.bottom is 0 | 29 PASS entries[1].intersectionRect.bottom is 0 |
33 PASS entries[1].rootBounds.left is 11 | 30 PASS entries[1].rootBounds.left is 0 |
34 PASS entries[1].rootBounds.right is 111 | 31 PASS entries[1].rootBounds.right is 0 |
35 PASS entries[1].rootBounds.top is 711 | 32 PASS entries[1].rootBounds.top is 0 |
36 PASS entries[1].rootBounds.bottom is 911 | 33 PASS entries[1].rootBounds.bottom is 0 |
37 PASS entries[1].target is [object HTMLDivElement] | 34 PASS entries[1].target is [object HTMLDivElement] |
| 35 PASS entries.length is 2 |
38 PASS entries.length is 3 | 36 PASS entries.length is 3 |
39 PASS entries[2].boundingClientRect.left is 11 | 37 PASS entries[2].boundingClientRect.left is 11 |
40 PASS entries[2].boundingClientRect.right is 111 | 38 PASS entries[2].boundingClientRect.right is 111 |
41 PASS entries[2].boundingClientRect.top is 861 | 39 PASS entries[2].boundingClientRect.top is 161 |
42 PASS entries[2].boundingClientRect.bottom is 961 | 40 PASS entries[2].boundingClientRect.bottom is 261 |
43 PASS entries[2].intersectionRect.left is 11 | 41 PASS entries[2].intersectionRect.left is 11 |
44 PASS entries[2].intersectionRect.right is 111 | 42 PASS entries[2].intersectionRect.right is 111 |
45 PASS entries[2].intersectionRect.top is 861 | 43 PASS entries[2].intersectionRect.top is 161 |
46 PASS entries[2].intersectionRect.bottom is 911 | 44 PASS entries[2].intersectionRect.bottom is 211 |
47 PASS entries[2].rootBounds.left is 11 | 45 PASS entries[2].rootBounds.left is 11 |
48 PASS entries[2].rootBounds.right is 111 | 46 PASS entries[2].rootBounds.right is 111 |
49 PASS entries[2].rootBounds.top is 711 | 47 PASS entries[2].rootBounds.top is 11 |
50 PASS entries[2].rootBounds.bottom is 911 | 48 PASS entries[2].rootBounds.bottom is 211 |
51 PASS entries[2].target is [object HTMLDivElement] | 49 PASS entries[2].target is [object HTMLDivElement] |
52 PASS successfullyParsed is true | 50 PASS successfullyParsed is true |
53 | 51 |
54 TEST COMPLETE | 52 TEST COMPLETE |
55 | 53 |
OLD | NEW |