Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/LayoutTests/intersection-observer/resources/timestamp-subframe.html

Issue 2560253004: IntersectionObserver: convert tests to testharness.js (Closed)
Patch Set: Address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698