Title: [279384] trunk/LayoutTests/imported/w3c
- Revision
- 279384
- Author
- [email protected]
- Date
- 2021-06-29 14:01:03 -0700 (Tue, 29 Jun 2021)
Log Message
Resync intersection-observer WPT tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=227500
Reviewed by Sam Weinig.
Resync intersection-observer WPT tests from upstream a38612f39e7752c353208.
* web-platform-tests/intersection-observer/target-is-root-expected.txt: Added.
* web-platform-tests/intersection-observer/target-is-root.html: Added.
* web-platform-tests/intersection-observer/w3c-import.log:
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (279383 => 279384)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2021-06-29 20:36:58 UTC (rev 279383)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2021-06-29 21:01:03 UTC (rev 279384)
@@ -1,3 +1,16 @@
+2021-06-29 Chris Dumez <[email protected]>
+
+ Resync intersection-observer WPT tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=227500
+
+ Reviewed by Sam Weinig.
+
+ Resync intersection-observer WPT tests from upstream a38612f39e7752c353208.
+
+ * web-platform-tests/intersection-observer/target-is-root-expected.txt: Added.
+ * web-platform-tests/intersection-observer/target-is-root.html: Added.
+ * web-platform-tests/intersection-observer/w3c-import.log:
+
2021-06-29 Darin Adler <[email protected]>
CSS style sheets loaded by HTMLLinkElement do not fall back correctly when charset is an invalid encoding name
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root-expected.txt (0 => 279384)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root-expected.txt 2021-06-29 21:01:03 UTC (rev 279384)
@@ -0,0 +1,3 @@
+
+PASS IntersectionObserver when root == target doesn't compute an intersection
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root.html (0 => 279384)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root.html 2021-06-29 21:01:03 UTC (rev 279384)
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<title>IntersectionObserver when root == target doesn't compute an intersection</title>
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<script src=""
+<script src=""
+<link rel="help" href=""
+<link rel="help" href=""
+<!--
+ Quoting IntersectionObserver section 3.2.8, "Run the Update Intersection Observations Steps", step 2, substep 3:
+
+ If the intersection root is an Element, and target is not a descendant of
+ the intersection root in the containing block chain, skip to step 11.
+
+-->
+<style>
+ #container {
+ overflow: scroll;
+ width: 100px;
+ height: 100px;
+ }
+</style>
+<div id=container>
+ <div></div>
+</div>
+<script>
+async_test(function(t) {
+ let container = document.getElementById("container");
+ let observer = new IntersectionObserver(t.step_func_done(function(entries) {
+ assert_equals(entries.length, 1);
+ assert_equals(entries[0].intersectionRatio, 0);
+ assert_equals(entries[0].isIntersecting, false);
+ }), { root: container });
+ observer.observe(container);
+});
+</script>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/w3c-import.log (279383 => 279384)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/w3c-import.log 2021-06-29 20:36:58 UTC (rev 279383)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/w3c-import.log 2021-06-29 21:01:03 UTC (rev 279384)
@@ -57,6 +57,7 @@
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/shadow-content.html
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-in-detached-document.html
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-in-different-window.html
+/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/target-is-root.html
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/text-target.html
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/timestamp.html
/LayoutTests/imported/w3c/web-platform-tests/intersection-observer/unclipped-root.html
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes