Delta Between Two Patch Sets: LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/timestamp-subframe.html
Left Patch Set: Computed root bounds correctly. Now 13/24 WPTs pass
Right Patch Set: 22 tests pass
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
LEFT | RIGHT |
(no file at all) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #target { |
| 4 width: 100px; |
| 5 height: 100px; |
| 6 background-color: green; |
| 7 } |
| 8 .spacer { |
| 9 width: height: 100px |
| 10 } |
| 11 </style> |
| 12 |
| 13 <div class="spacer"></div> |
| 14 <div id="target"></div> |
| 15 <div class="spacer"></div> |
| 16 |
| 17 <script> |
| 18 document.createObserverCallback = function(entries) { |
| 19 return function(newEntries) { |
| 20 for (var i in newEntries) { |
| 21 entries.push(newEntries[i]); |
| 22 } |
| 23 }; |
| 24 } |
| 25 document.createObserver = function(callback) { |
| 26 return new IntersectionObserver(callback, {}); |
| 27 }; |
| 28 </script> |
LEFT | RIGHT |