| OLD | NEW |
| 1 Tests that scrolling to make an element visible works when the inner scroll cont
ainer doesn't need to be scrolled, but the other one does. | 1 Tests that scrolling to make an element visible works when the inner scroll cont
ainer doesn't need to be scrolled, but the other one does. |
| 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 5000-pixel box | 6 5000-pixel box |
| 7 Target Target Target | 7 TargetTargetTarget |
| 8 5000-pixel box | 8 5000-pixel box |
| 9 PASS window.pageYOffset is 0 | 9 PASS window.pageYOffset is 0 |
| 10 PASS container.scrollTop is 0 | 10 PASS container.scrollTop is 0 |
| 11 PASS target1.getBoundingClientRect().top is >= 5000 | 11 PASS target1.getBoundingClientRect().top is >= 5000 |
| 12 PASS window.innerHeight is >= target2.getBoundingClientRect().bottom | 12 PASS window.innerHeight is >= target2.getBoundingClientRect().bottom |
| 13 PASS target2top is target2.getBoundingClientRect().top | 13 PASS target2top is target2.getBoundingClientRect().top |
| 14 PASS target2top is target2.getBoundingClientRect().top | 14 PASS target2top is target2.getBoundingClientRect().top |
| 15 PASS successfullyParsed is true | 15 PASS successfullyParsed is true |
| 16 | 16 |
| 17 TEST COMPLETE | 17 TEST COMPLETE |
| 18 | 18 |
| OLD | NEW |