OLD | NEW |
(Empty) | |
| 1 Intersection observer test with root margin and implicit root. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS new IntersectionObserver(observer_callback, { rootMargin: '1' }) threw exce
ption Error: rootMargin must be specified in pixels or percent.. |
| 7 PASS new IntersectionObserver(observer_callback, { rootMargin: '1em' }) threw ex
ception Error: rootMargin must be specified in pixels or percent.. |
| 8 PASS new IntersectionObserver(observer_callback, { rootMargin: 'auto' }) threw e
xception Error: rootMargin must be specified in pixels or percent.. |
| 9 PASS new IntersectionObserver(observer_callback, { rootMargin: '1.4px' }) did no
t throw exception. |
| 10 PASS new IntersectionObserver(observer_callback, { rootMargin: '1.4px 2px' }) di
d not throw exception. |
| 11 PASS new IntersectionObserver(observer_callback, { rootMargin: '1.4px 2px 3%' })
did not throw exception. |
| 12 PASS new IntersectionObserver(observer_callback, { rootMargin: '1.4px 2px 3% 40p
x junk junk junk' }) did not throw exception. |
| 13 PASS entries.length is 0 |
| 14 PASS entries.length is 1 |
| 15 PASS entries[0].boundingClientRect.left is 912 |
| 16 PASS entries[0].boundingClientRect.right is 1012 |
| 17 PASS entries[0].boundingClientRect.top is 708 |
| 18 PASS entries[0].boundingClientRect.bottom is 808 |
| 19 PASS entries[0].intersectionRect.left is 912 |
| 20 PASS entries[0].intersectionRect.right is 942 |
| 21 PASS entries[0].intersectionRect.top is 708 |
| 22 PASS entries[0].intersectionRect.bottom is 808 |
| 23 PASS entries[0].rootBounds.left is -30 |
| 24 PASS entries[0].rootBounds.right is 942 |
| 25 PASS entries[0].rootBounds.top is -10 |
| 26 PASS entries[0].rootBounds.bottom is 819 |
| 27 PASS entries[0].target is [object HTMLDivElement] |
| 28 PASS entries.length is 1 |
| 29 PASS entries.length is 2 |
| 30 PASS entries[1].boundingClientRect.left is 912 |
| 31 PASS entries[1].boundingClientRect.right is 1012 |
| 32 PASS entries[1].boundingClientRect.top is -192 |
| 33 PASS entries[1].boundingClientRect.bottom is -92 |
| 34 PASS entries[1].intersectionRect.left is 0 |
| 35 PASS entries[1].intersectionRect.right is 0 |
| 36 PASS entries[1].intersectionRect.top is 0 |
| 37 PASS entries[1].intersectionRect.bottom is 0 |
| 38 PASS entries[1].rootBounds.left is -30 |
| 39 PASS entries[1].rootBounds.right is 942 |
| 40 PASS entries[1].rootBounds.top is -10 |
| 41 PASS entries[1].rootBounds.bottom is 819 |
| 42 PASS entries[1].target is [object HTMLDivElement] |
| 43 PASS successfullyParsed is true |
| 44 |
| 45 TEST COMPLETE |
| 46 |
| 47 |
OLD | NEW |