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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning.html

Issue 2048853002: IntersectionObserver: Warn when target is not a descendant of root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix test expectation Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning.html
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning.html b/third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning.html
new file mode 100644
index 0000000000000000000000000000000000000000..6cb8fca37ae1a99d162005ec32fb2502b62ee327
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<div id="root"></div>
+<div id="target"></div>
+<script>
+if (self.testRunner)
+ testRunner.dumpAsText();
+var root = document.getElementById("root");
+var target = document.getElementById("target");
+new IntersectionObserver(c => {}, {root: root}).observe(target);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/containing-block-warning-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698