Skip to content
Permalink
Browse files
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:


Canonical link: https://commits.webkit.org/239249@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279384 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
cdumez committed Jun 29, 2021
1 parent 36ee89e commit c7b85dc42184fa86ccce3d710b6dd00d7bb12aaf
Showing 4 changed files with 52 additions and 0 deletions.
@@ -1,3 +1,16 @@
2021-06-29 Chris Dumez <cdumez@apple.com>

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 <darin@apple.com>

CSS style sheets loaded by HTMLLinkElement do not fall back correctly when charset is an invalid encoding name
@@ -0,0 +1,3 @@

PASS IntersectionObserver when root == target doesn't compute an intersection

@@ -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="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1682915">
<link rel="help" href="https://w3c.github.io/IntersectionObserver/#update-intersection-observations-algo">
<!--
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>
@@ -57,6 +57,7 @@ List of files:
/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

0 comments on commit c7b85dc

Please sign in to comment.