From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../tests/intersection-observer/META.yml | 3 + .../tests/intersection-observer/bounding-box.html | 85 ++++++++ .../callback-cross-realm-report-exception.html | 30 +++ .../tests/intersection-observer/client-rect.html | 46 +++++ .../tests/intersection-observer/clip-path.html | 77 ++++++++ .../intersection-observer/containing-block.html | 74 +++++++ .../intersection-observer/cross-document-root.html | 49 +++++ .../cross-origin-iframe.sub.html | 53 +++++ .../tests/intersection-observer/disconnect.html | 54 +++++ .../tests/intersection-observer/display-none.html | 68 +++++++ .../document-scrolling-element-root.html | 50 +++++ .../edge-inclusive-intersection.html | 67 +++++++ .../intersection-observer/empty-root-margin.html | 29 +++ ...explicit-root-different-document.tentative.html | 27 +++ .../intersection-observer/idlharness.window.js | 22 +++ .../iframe-no-root-with-wrapping-scroller.html | 74 +++++++ .../intersection-observer/iframe-no-root.html | 72 +++++++ .../initial-observation-with-threshold.html | 61 ++++++ .../intersection-observer/inline-client-rect.html | 93 +++++++++ .../inline-with-block-child-client-rect.html | 46 +++++ .../intersection-ratio-ib-split.html | 45 +++++ ...ntersection-ratio-with-fractional-bounds-2.html | 37 ++++ ...ion-ratio-with-fractional-bounds-in-iframe.html | 32 +++ .../intersection-ratio-with-fractional-bounds.html | 42 ++++ .../isIntersecting-change-events.html | 113 +++++++++++ .../isIntersecting-threshold.html | 54 +++++ .../intersection-observer/multiple-targets.html | 81 ++++++++ .../intersection-observer/multiple-thresholds.html | 97 +++++++++ .../nested-cross-origin-iframe.sub.html | 75 +++++++ .../not-in-containing-block-chain.tentative.html | 25 +++ .../intersection-observer/observer-attributes.html | 41 ++++ .../observer-callback-arguments.html | 28 +++ .../intersection-observer/observer-exceptions.html | 61 ++++++ .../intersection-observer/observer-in-iframe.html | 10 + .../observer-without-js-reference.html | 51 +++++ .../intersection-observer/remove-element.html | 83 ++++++++ .../resources/cross-origin-child-iframe.sub.html | 7 + .../resources/cross-origin-subframe.html | 171 ++++++++++++++++ .../resources/iframe-no-root-subframe.html | 4 + .../resources/intersection-observer-test-utils.js | 217 +++++++++++++++++++++ ...o-with-fractional-bounds-in-iframe-content.html | 50 +++++ .../nested-cross-origin-child-iframe.sub.html | 22 +++ .../nested-cross-origin-grand-child-iframe.html | 15 ++ .../resources/observer-in-iframe-subframe.html | 65 ++++++ .../resources/same-origin-grand-child-iframe.html | 17 ++ .../resources/scaled-target-subframe.html | 43 ++++ .../resources/timestamp-subframe.html | 28 +++ .../resources/v2-subframe.html | 32 +++ .../root-margin-root-element.html | 90 +++++++++ .../root-margin-rounding.html | 31 +++ .../tests/intersection-observer/root-margin.html | 87 +++++++++ .../intersection-observer/rtl-clipped-root.html | 66 +++++++ .../same-document-no-root.html | 62 ++++++ .../intersection-observer/same-document-root.html | 91 +++++++++ .../same-document-with-document-root.html | 60 ++++++ .../same-document-zero-size-target.html | 62 ++++++ .../same-origin-grand-child-iframe.sub.html | 33 ++++ .../intersection-observer/shadow-content.html | 45 +++++ .../target-in-detached-document.html | 48 +++++ .../target-in-different-window.html | 41 ++++ .../intersection-observer/target-is-root.html | 35 ++++ .../tests/intersection-observer/text-target.html | 63 ++++++ .../tests/intersection-observer/timestamp.html | 100 ++++++++++ .../intersection-observer/unclipped-root.html | 58 ++++++ .../v2/animated-occlusion.html | 73 +++++++ .../intersection-observer/v2/blur-filter.html | 65 ++++++ .../tests/intersection-observer/v2/box-shadow.html | 67 +++++++ .../v2/cross-origin-effects.sub.html | 65 ++++++ .../v2/cross-origin-occlusion.sub.html | 69 +++++++ .../tests/intersection-observer/v2/delay-test.html | 89 +++++++++ .../v2/drop-shadow-filter-vertical-rl.html | 66 +++++++ .../intersection-observer/v2/iframe-target.html | 45 +++++ .../intersection-observer/v2/inline-occlusion.html | 62 ++++++ ...-absolute-overflow-visible-and-not-visible.html | 51 +++++ .../v2/position-relative.html | 49 +++++ .../intersection-observer/v2/scaled-target.html | 62 ++++++ .../intersection-observer/v2/simple-effects.html | 72 +++++++ .../v2/simple-occlusion-svg-foreign-object.html | 71 +++++++ .../intersection-observer/v2/simple-occlusion.html | 67 +++++++ .../v2/text-editor-occlusion.html | 62 ++++++ .../intersection-observer/v2/text-shadow.html | 70 +++++++ .../zero-area-element-hidden.html | 44 +++++ .../zero-area-element-visible.html | 45 +++++ 83 files changed, 4792 insertions(+) create mode 100644 testing/web-platform/tests/intersection-observer/META.yml create mode 100644 testing/web-platform/tests/intersection-observer/bounding-box.html create mode 100644 testing/web-platform/tests/intersection-observer/callback-cross-realm-report-exception.html create mode 100644 testing/web-platform/tests/intersection-observer/client-rect.html create mode 100644 testing/web-platform/tests/intersection-observer/clip-path.html create mode 100644 testing/web-platform/tests/intersection-observer/containing-block.html create mode 100644 testing/web-platform/tests/intersection-observer/cross-document-root.html create mode 100644 testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/disconnect.html create mode 100644 testing/web-platform/tests/intersection-observer/display-none.html create mode 100644 testing/web-platform/tests/intersection-observer/document-scrolling-element-root.html create mode 100644 testing/web-platform/tests/intersection-observer/edge-inclusive-intersection.html create mode 100644 testing/web-platform/tests/intersection-observer/empty-root-margin.html create mode 100644 testing/web-platform/tests/intersection-observer/explicit-root-different-document.tentative.html create mode 100644 testing/web-platform/tests/intersection-observer/idlharness.window.js create mode 100644 testing/web-platform/tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html create mode 100644 testing/web-platform/tests/intersection-observer/iframe-no-root.html create mode 100644 testing/web-platform/tests/intersection-observer/initial-observation-with-threshold.html create mode 100644 testing/web-platform/tests/intersection-observer/inline-client-rect.html create mode 100644 testing/web-platform/tests/intersection-observer/inline-with-block-child-client-rect.html create mode 100644 testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html create mode 100644 testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-2.html create mode 100644 testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-in-iframe.html create mode 100644 testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds.html create mode 100644 testing/web-platform/tests/intersection-observer/isIntersecting-change-events.html create mode 100644 testing/web-platform/tests/intersection-observer/isIntersecting-threshold.html create mode 100644 testing/web-platform/tests/intersection-observer/multiple-targets.html create mode 100644 testing/web-platform/tests/intersection-observer/multiple-thresholds.html create mode 100644 testing/web-platform/tests/intersection-observer/nested-cross-origin-iframe.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/not-in-containing-block-chain.tentative.html create mode 100644 testing/web-platform/tests/intersection-observer/observer-attributes.html create mode 100644 testing/web-platform/tests/intersection-observer/observer-callback-arguments.html create mode 100644 testing/web-platform/tests/intersection-observer/observer-exceptions.html create mode 100644 testing/web-platform/tests/intersection-observer/observer-in-iframe.html create mode 100644 testing/web-platform/tests/intersection-observer/observer-without-js-reference.html create mode 100644 testing/web-platform/tests/intersection-observer/remove-element.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/cross-origin-child-iframe.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/cross-origin-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/iframe-no-root-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/intersection-observer-test-utils.js create mode 100644 testing/web-platform/tests/intersection-observer/resources/intersection-ratio-with-fractional-bounds-in-iframe-content.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/observer-in-iframe-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/same-origin-grand-child-iframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/scaled-target-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/timestamp-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/resources/v2-subframe.html create mode 100644 testing/web-platform/tests/intersection-observer/root-margin-root-element.html create mode 100644 testing/web-platform/tests/intersection-observer/root-margin-rounding.html create mode 100644 testing/web-platform/tests/intersection-observer/root-margin.html create mode 100644 testing/web-platform/tests/intersection-observer/rtl-clipped-root.html create mode 100644 testing/web-platform/tests/intersection-observer/same-document-no-root.html create mode 100644 testing/web-platform/tests/intersection-observer/same-document-root.html create mode 100644 testing/web-platform/tests/intersection-observer/same-document-with-document-root.html create mode 100644 testing/web-platform/tests/intersection-observer/same-document-zero-size-target.html create mode 100644 testing/web-platform/tests/intersection-observer/same-origin-grand-child-iframe.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/shadow-content.html create mode 100644 testing/web-platform/tests/intersection-observer/target-in-detached-document.html create mode 100644 testing/web-platform/tests/intersection-observer/target-in-different-window.html create mode 100644 testing/web-platform/tests/intersection-observer/target-is-root.html create mode 100644 testing/web-platform/tests/intersection-observer/text-target.html create mode 100644 testing/web-platform/tests/intersection-observer/timestamp.html create mode 100644 testing/web-platform/tests/intersection-observer/unclipped-root.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/animated-occlusion.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/blur-filter.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/box-shadow.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/cross-origin-effects.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/cross-origin-occlusion.sub.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/delay-test.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/drop-shadow-filter-vertical-rl.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/iframe-target.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/inline-occlusion.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/position-absolute-overflow-visible-and-not-visible.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/position-relative.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/scaled-target.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/simple-effects.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/simple-occlusion-svg-foreign-object.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/simple-occlusion.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/text-editor-occlusion.html create mode 100644 testing/web-platform/tests/intersection-observer/v2/text-shadow.html create mode 100644 testing/web-platform/tests/intersection-observer/zero-area-element-hidden.html create mode 100644 testing/web-platform/tests/intersection-observer/zero-area-element-visible.html (limited to 'testing/web-platform/tests/intersection-observer') diff --git a/testing/web-platform/tests/intersection-observer/META.yml b/testing/web-platform/tests/intersection-observer/META.yml new file mode 100644 index 0000000000..31dddab561 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/META.yml @@ -0,0 +1,3 @@ +spec: https://w3c.github.io/IntersectionObserver/ +suggested_reviewers: + - szager-chromium diff --git a/testing/web-platform/tests/intersection-observer/bounding-box.html b/testing/web-platform/tests/intersection-observer/bounding-box.html new file mode 100644 index 0000000000..367243d558 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/bounding-box.html @@ -0,0 +1,85 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/callback-cross-realm-report-exception.html b/testing/web-platform/tests/intersection-observer/callback-cross-realm-report-exception.html new file mode 100644 index 0000000000..0bec720485 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/callback-cross-realm-report-exception.html @@ -0,0 +1,30 @@ + + +IntersectionObserver reports the exception from its callback in the callback's global object + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/client-rect.html b/testing/web-platform/tests/intersection-observer/client-rect.html new file mode 100644 index 0000000000..e85171ca7c --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/client-rect.html @@ -0,0 +1,46 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/clip-path.html b/testing/web-platform/tests/intersection-observer/clip-path.html new file mode 100644 index 0000000000..a43d3fb7b0 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/clip-path.html @@ -0,0 +1,77 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/containing-block.html b/testing/web-platform/tests/intersection-observer/containing-block.html new file mode 100644 index 0000000000..f7ce6fa724 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/containing-block.html @@ -0,0 +1,74 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/cross-document-root.html b/testing/web-platform/tests/intersection-observer/cross-document-root.html new file mode 100644 index 0000000000..9288bf5806 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/cross-document-root.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html b/testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html new file mode 100644 index 0000000000..d444237f6b --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/cross-origin-iframe.sub.html @@ -0,0 +1,53 @@ + + + + + + + + +
+ +
+ + diff --git a/testing/web-platform/tests/intersection-observer/disconnect.html b/testing/web-platform/tests/intersection-observer/disconnect.html new file mode 100644 index 0000000000..9c02dafabe --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/disconnect.html @@ -0,0 +1,54 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/display-none.html b/testing/web-platform/tests/intersection-observer/display-none.html new file mode 100644 index 0000000000..6c2040ee0c --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/display-none.html @@ -0,0 +1,68 @@ + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/document-scrolling-element-root.html b/testing/web-platform/tests/intersection-observer/document-scrolling-element-root.html new file mode 100644 index 0000000000..443ff2ed85 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/document-scrolling-element-root.html @@ -0,0 +1,50 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/edge-inclusive-intersection.html b/testing/web-platform/tests/intersection-observer/edge-inclusive-intersection.html new file mode 100644 index 0000000000..b73c407a27 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/edge-inclusive-intersection.html @@ -0,0 +1,67 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/empty-root-margin.html b/testing/web-platform/tests/intersection-observer/empty-root-margin.html new file mode 100644 index 0000000000..9eaf856e95 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/empty-root-margin.html @@ -0,0 +1,29 @@ + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/explicit-root-different-document.tentative.html b/testing/web-platform/tests/intersection-observer/explicit-root-different-document.tentative.html new file mode 100644 index 0000000000..15c5e620d5 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/explicit-root-different-document.tentative.html @@ -0,0 +1,27 @@ + + + + + + +
+ diff --git a/testing/web-platform/tests/intersection-observer/idlharness.window.js b/testing/web-platform/tests/intersection-observer/idlharness.window.js new file mode 100644 index 0000000000..2059e1ce63 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/idlharness.window.js @@ -0,0 +1,22 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://w3c.github.io/IntersectionObserver/ + +idl_test( + ['intersection-observer'], + ['dom'], + idl_array => { + idl_array.add_objects({ + IntersectionObserver: ['observer'], + }); + var options = { + root: document.body, + rootMargin: '0px', + threshold: 1.0 + } + self.observer = new IntersectionObserver(() => {}, options); + } +); diff --git a/testing/web-platform/tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html b/testing/web-platform/tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html new file mode 100644 index 0000000000..28e6d09d7b --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/iframe-no-root-with-wrapping-scroller.html @@ -0,0 +1,74 @@ + + + + + + + + +
+
+ +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/iframe-no-root.html b/testing/web-platform/tests/intersection-observer/iframe-no-root.html new file mode 100644 index 0000000000..8532246fd1 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/iframe-no-root.html @@ -0,0 +1,72 @@ + + + + + + + + +
+ +
+ + diff --git a/testing/web-platform/tests/intersection-observer/initial-observation-with-threshold.html b/testing/web-platform/tests/intersection-observer/initial-observation-with-threshold.html new file mode 100644 index 0000000000..b9218b09ea --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/initial-observation-with-threshold.html @@ -0,0 +1,61 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/inline-client-rect.html b/testing/web-platform/tests/intersection-observer/inline-client-rect.html new file mode 100644 index 0000000000..c096230eb1 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/inline-client-rect.html @@ -0,0 +1,93 @@ + + + + + + + + +
+
+
1
+
2
+
3
+
4
+
5
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/inline-with-block-child-client-rect.html b/testing/web-platform/tests/intersection-observer/inline-with-block-child-client-rect.html new file mode 100644 index 0000000000..81a8fd1256 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/inline-with-block-child-client-rect.html @@ -0,0 +1,46 @@ + + + + + + + +
+
+ +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html b/testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html new file mode 100644 index 0000000000..ba5370e335 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html @@ -0,0 +1,45 @@ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-2.html b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-2.html new file mode 100644 index 0000000000..1e250accd8 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-2.html @@ -0,0 +1,37 @@ + +IntersectionObserver ratio with fractional bounds + + + + + + + +
+
+ +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-in-iframe.html b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-in-iframe.html new file mode 100644 index 0000000000..b00f8ddaf6 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds-in-iframe.html @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds.html b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds.html new file mode 100644 index 0000000000..9f54bef976 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/intersection-ratio-with-fractional-bounds.html @@ -0,0 +1,42 @@ + +IntersectionObserver ratio with fractional bounds + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/isIntersecting-change-events.html b/testing/web-platform/tests/intersection-observer/isIntersecting-change-events.html new file mode 100644 index 0000000000..99bc65bd60 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/isIntersecting-change-events.html @@ -0,0 +1,113 @@ + + + + + + + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/isIntersecting-threshold.html b/testing/web-platform/tests/intersection-observer/isIntersecting-threshold.html new file mode 100644 index 0000000000..842c8e2c9f --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/isIntersecting-threshold.html @@ -0,0 +1,54 @@ + + + + + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/multiple-targets.html b/testing/web-platform/tests/intersection-observer/multiple-targets.html new file mode 100644 index 0000000000..22353e3aaa --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/multiple-targets.html @@ -0,0 +1,81 @@ + + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/multiple-thresholds.html b/testing/web-platform/tests/intersection-observer/multiple-thresholds.html new file mode 100644 index 0000000000..3599e1f722 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/multiple-thresholds.html @@ -0,0 +1,97 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/nested-cross-origin-iframe.sub.html b/testing/web-platform/tests/intersection-observer/nested-cross-origin-iframe.sub.html new file mode 100644 index 0000000000..090d236399 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/nested-cross-origin-iframe.sub.html @@ -0,0 +1,75 @@ + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/not-in-containing-block-chain.tentative.html b/testing/web-platform/tests/intersection-observer/not-in-containing-block-chain.tentative.html new file mode 100644 index 0000000000..4490d0b631 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/not-in-containing-block-chain.tentative.html @@ -0,0 +1,25 @@ + + + + + + +
+
+ diff --git a/testing/web-platform/tests/intersection-observer/observer-attributes.html b/testing/web-platform/tests/intersection-observer/observer-attributes.html new file mode 100644 index 0000000000..9d0b788b33 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/observer-attributes.html @@ -0,0 +1,41 @@ + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/observer-callback-arguments.html b/testing/web-platform/tests/intersection-observer/observer-callback-arguments.html new file mode 100644 index 0000000000..6e816969d0 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/observer-callback-arguments.html @@ -0,0 +1,28 @@ + + +IntersectionObserver: callback arguments + + + +
+ diff --git a/testing/web-platform/tests/intersection-observer/observer-exceptions.html b/testing/web-platform/tests/intersection-observer/observer-exceptions.html new file mode 100644 index 0000000000..126790f290 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/observer-exceptions.html @@ -0,0 +1,61 @@ + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/observer-in-iframe.html b/testing/web-platform/tests/intersection-observer/observer-in-iframe.html new file mode 100644 index 0000000000..e918bf1a4f --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/observer-in-iframe.html @@ -0,0 +1,10 @@ + + + + diff --git a/testing/web-platform/tests/intersection-observer/observer-without-js-reference.html b/testing/web-platform/tests/intersection-observer/observer-without-js-reference.html new file mode 100644 index 0000000000..53100c50bb --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/observer-without-js-reference.html @@ -0,0 +1,51 @@ + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/remove-element.html b/testing/web-platform/tests/intersection-observer/remove-element.html new file mode 100644 index 0000000000..a093b22028 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/remove-element.html @@ -0,0 +1,83 @@ + + + + + + + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/cross-origin-child-iframe.sub.html b/testing/web-platform/tests/intersection-observer/resources/cross-origin-child-iframe.sub.html new file mode 100644 index 0000000000..c341cd4102 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/cross-origin-child-iframe.sub.html @@ -0,0 +1,7 @@ + + + + diff --git a/testing/web-platform/tests/intersection-observer/resources/cross-origin-subframe.html b/testing/web-platform/tests/intersection-observer/resources/cross-origin-subframe.html new file mode 100644 index 0000000000..1b34d7c7b7 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/cross-origin-subframe.html @@ -0,0 +1,171 @@ + +
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/iframe-no-root-subframe.html b/testing/web-platform/tests/intersection-observer/resources/iframe-no-root-subframe.html new file mode 100644 index 0000000000..ee63a06ca0 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/iframe-no-root-subframe.html @@ -0,0 +1,4 @@ + +
+
+
diff --git a/testing/web-platform/tests/intersection-observer/resources/intersection-observer-test-utils.js b/testing/web-platform/tests/intersection-observer/resources/intersection-observer-test-utils.js new file mode 100644 index 0000000000..c26ccea030 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/intersection-observer-test-utils.js @@ -0,0 +1,217 @@ +// Here's how waitForNotification works: +// +// - myTestFunction0() +// - waitForNotification(myTestFunction1) +// - requestAnimationFrame() +// - Modify DOM in a way that should trigger an IntersectionObserver callback. +// - BeginFrame +// - requestAnimationFrame handler runs +// - Second requestAnimationFrame() +// - Style, layout, paint +// - IntersectionObserver generates new notifications +// - Posts a task to deliver notifications +// - Task to deliver IntersectionObserver notifications runs +// - IntersectionObserver callbacks run +// - Second requestAnimationFrameHandler runs +// - step_timeout() +// - step_timeout handler runs +// - myTestFunction1() +// - [optional] waitForNotification(myTestFunction2) +// - requestAnimationFrame() +// - Verify newly-arrived IntersectionObserver notifications +// - [optional] Modify DOM to trigger new notifications +// +// Ideally, it should be sufficient to use requestAnimationFrame followed +// by two step_timeouts, with the first step_timeout firing in between the +// requestAnimationFrame handler and the task to deliver notifications. +// However, the precise timing of requestAnimationFrame, the generation of +// a new display frame (when IntersectionObserver notifications are +// generated), and the delivery of these events varies between engines, making +// this tricky to test in a non-flaky way. +// +// In particular, in WebKit, requestAnimationFrame and the generation of +// a display frame are two separate tasks, so a step_timeout called within +// requestAnimationFrame can fire before a display frame is generated. +// +// In Gecko, on the other hand, requestAnimationFrame and the generation of +// a display frame are a single task, and IntersectionObserver notifications +// are generated during this task. However, the task posted to deliver these +// notifications can fire after the following requestAnimationFrame. +// +// This means that in general, by the time the second requestAnimationFrame +// handler runs, we know that IntersectionObservations have been generated, +// and that a task to deliver these notifications has been posted (though +// possibly not yet delivered). Then, by the time the step_timeout() handler +// runs, these notifications have been delivered. +// +// Since waitForNotification uses a double-rAF, it is now possible that +// IntersectionObservers may have generated more notifications than what is +// under test, but have not yet scheduled the new batch of notifications for +// delivery. As a result, observer.takeRecords should NOT be used in tests: +// +// - myTestFunction0() +// - waitForNotification(myTestFunction1) +// - requestAnimationFrame() +// - Modify DOM in a way that should trigger an IntersectionObserver callback. +// - BeginFrame +// - requestAnimationFrame handler runs +// - Second requestAnimationFrame() +// - Style, layout, paint +// - IntersectionObserver generates a batch of notifications +// - Posts a task to deliver notifications +// - Task to deliver IntersectionObserver notifications runs +// - IntersectionObserver callbacks run +// - BeginFrame +// - Second requestAnimationFrameHandler runs +// - step_timeout() +// - IntersectionObserver generates another batch of notifications +// - Post task to deliver notifications +// - step_timeout handler runs +// - myTestFunction1() +// - At this point, observer.takeRecords will get the second batch of +// notifications. +function waitForNotification(t, f) { + return new Promise(resolve => { + requestAnimationFrame(function() { + requestAnimationFrame(function() { + let callback = function() { + resolve(); + if (f) { + f(); + } + }; + if (t) { + t.step_timeout(callback); + } else { + setTimeout(callback); + } + }); + }); + }); +} + +// If you need to wait until the IntersectionObserver algorithm has a chance +// to run, but don't need to wait for delivery of the notifications... +function waitForFrame(t, f) { + return new Promise(resolve => { + requestAnimationFrame(function() { + t.step_timeout(function() { + resolve(); + if (f) { + f(); + } + }); + }); + }); +} + +// The timing of when runTestCycle is called is important. It should be +// called: +// +// - Before or during the window load event, or +// - Inside of a prior runTestCycle callback, *before* any assert_* methods +// are called. +// +// Following these rules will ensure that the test suite will not abort before +// all test steps have run. +// +// If the 'delay' parameter to the IntersectionObserver constructor is used, +// tests will need to add the same delay to their runTestCycle invocations, to +// wait for notifications to be generated and delivered. +function runTestCycle(f, description, delay) { + async_test(function(t) { + if (delay) { + step_timeout(() => { + waitForNotification(t, t.step_func_done(f)); + }, delay); + } else { + waitForNotification(t, t.step_func_done(f)); + } + }, description); +} + +// Root bounds for a root with an overflow clip as defined by: +// http://wicg.github.io/IntersectionObserver/#intersectionobserver-root-intersection-rectangle +function contentBounds(root) { + var left = root.offsetLeft + root.clientLeft; + var right = left + root.clientWidth; + var top = root.offsetTop + root.clientTop; + var bottom = top + root.clientHeight; + return [left, right, top, bottom]; +} + +// Root bounds for a root without an overflow clip as defined by: +// http://wicg.github.io/IntersectionObserver/#intersectionobserver-root-intersection-rectangle +function borderBoxBounds(root) { + var left = root.offsetLeft; + var right = left + root.offsetWidth; + var top = root.offsetTop; + var bottom = top + root.offsetHeight; + return [left, right, top, bottom]; +} + +function clientBounds(element) { + var rect = element.getBoundingClientRect(); + return [rect.left, rect.right, rect.top, rect.bottom]; +} + +function rectArea(rect) { + return (rect.left - rect.right) * (rect.bottom - rect.top); +} + +function checkRect(actual, expected, description, all) { + if (!expected.length) + return; + assert_equals(actual.left | 0, expected[0] | 0, description + '.left'); + assert_equals(actual.right | 0, expected[1] | 0, description + '.right'); + assert_equals(actual.top | 0, expected[2] | 0, description + '.top'); + assert_equals(actual.bottom | 0, expected[3] | 0, description + '.bottom'); +} + +function checkLastEntry(entries, i, expected) { + assert_equals(entries.length, i + 1, 'entries.length'); + if (expected) { + checkRect( + entries[i].boundingClientRect, expected.slice(0, 4), + 'entries[' + i + '].boundingClientRect', entries[i]); + checkRect( + entries[i].intersectionRect, expected.slice(4, 8), + 'entries[' + i + '].intersectionRect', entries[i]); + checkRect( + entries[i].rootBounds, expected.slice(8, 12), + 'entries[' + i + '].rootBounds', entries[i]); + if (expected.length > 12) { + assert_equals( + entries[i].isIntersecting, expected[12], + 'entries[' + i + '].isIntersecting'); + } + } +} + +function checkJsonEntry(actual, expected) { + checkRect( + actual.boundingClientRect, expected.boundingClientRect, + 'entry.boundingClientRect'); + checkRect( + actual.intersectionRect, expected.intersectionRect, + 'entry.intersectionRect'); + if (actual.rootBounds == 'null') + assert_equals(expected.rootBounds, 'null', 'rootBounds is null'); + else + checkRect(actual.rootBounds, expected.rootBounds, 'entry.rootBounds'); + assert_equals(actual.isIntersecting, expected.isIntersecting); + assert_equals(actual.target, expected.target); +} + +function checkJsonEntries(actual, expected, description) { + test(function() { + assert_equals(actual.length, expected.length); + for (var i = 0; i < actual.length; i++) + checkJsonEntry(actual[i], expected[i]); + }, description); +} + +function checkIsIntersecting(entries, i, expected) { + assert_equals(entries[i].isIntersecting, expected, + 'entries[' + i + '].target.isIntersecting equals ' + expected); +} diff --git a/testing/web-platform/tests/intersection-observer/resources/intersection-ratio-with-fractional-bounds-in-iframe-content.html b/testing/web-platform/tests/intersection-observer/resources/intersection-ratio-with-fractional-bounds-in-iframe-content.html new file mode 100644 index 0000000000..696ebf6ebe --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/intersection-ratio-with-fractional-bounds-in-iframe-content.html @@ -0,0 +1,50 @@ + + + + + + + +
+ +
+

Observer target

+

Intersection ratio:

+
+
+ + + + diff --git a/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html b/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html new file mode 100644 index 0000000000..78f3d2ca26 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-child-iframe.sub.html @@ -0,0 +1,22 @@ + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html b/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html new file mode 100644 index 0000000000..3676760e35 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.html @@ -0,0 +1,15 @@ + +
+ diff --git a/testing/web-platform/tests/intersection-observer/resources/observer-in-iframe-subframe.html b/testing/web-platform/tests/intersection-observer/resources/observer-in-iframe-subframe.html new file mode 100644 index 0000000000..9d0769ae44 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/observer-in-iframe-subframe.html @@ -0,0 +1,65 @@ + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/same-origin-grand-child-iframe.html b/testing/web-platform/tests/intersection-observer/resources/same-origin-grand-child-iframe.html new file mode 100644 index 0000000000..0a1426ef02 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/same-origin-grand-child-iframe.html @@ -0,0 +1,17 @@ + + +
+ diff --git a/testing/web-platform/tests/intersection-observer/resources/scaled-target-subframe.html b/testing/web-platform/tests/intersection-observer/resources/scaled-target-subframe.html new file mode 100644 index 0000000000..8f6f930e00 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/scaled-target-subframe.html @@ -0,0 +1,43 @@ + + + +
target
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/timestamp-subframe.html b/testing/web-platform/tests/intersection-observer/resources/timestamp-subframe.html new file mode 100644 index 0000000000..143e4f6e23 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/timestamp-subframe.html @@ -0,0 +1,28 @@ + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/resources/v2-subframe.html b/testing/web-platform/tests/intersection-observer/resources/v2-subframe.html new file mode 100644 index 0000000000..295bbf047e --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/resources/v2-subframe.html @@ -0,0 +1,32 @@ + +
target
+ diff --git a/testing/web-platform/tests/intersection-observer/root-margin-root-element.html b/testing/web-platform/tests/intersection-observer/root-margin-root-element.html new file mode 100644 index 0000000000..6016d45bdf --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/root-margin-root-element.html @@ -0,0 +1,90 @@ + + + + + + + +
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/root-margin-rounding.html b/testing/web-platform/tests/intersection-observer/root-margin-rounding.html new file mode 100644 index 0000000000..f5e3323019 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/root-margin-rounding.html @@ -0,0 +1,31 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/root-margin.html b/testing/web-platform/tests/intersection-observer/root-margin.html new file mode 100644 index 0000000000..898454c4f3 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/root-margin.html @@ -0,0 +1,87 @@ + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/rtl-clipped-root.html b/testing/web-platform/tests/intersection-observer/rtl-clipped-root.html new file mode 100644 index 0000000000..a30c6e38c5 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/rtl-clipped-root.html @@ -0,0 +1,66 @@ + + + + + + + + + + + +
+
start
+
end
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/same-document-no-root.html b/testing/web-platform/tests/intersection-observer/same-document-no-root.html new file mode 100644 index 0000000000..63e9f86d9c --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/same-document-no-root.html @@ -0,0 +1,62 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/same-document-root.html b/testing/web-platform/tests/intersection-observer/same-document-root.html new file mode 100644 index 0000000000..bfb9b729aa --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/same-document-root.html @@ -0,0 +1,91 @@ + + + + + + + + +
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/same-document-with-document-root.html b/testing/web-platform/tests/intersection-observer/same-document-with-document-root.html new file mode 100644 index 0000000000..15cb7c4cbc --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/same-document-with-document-root.html @@ -0,0 +1,60 @@ + + + + + + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/intersection-observer/same-document-zero-size-target.html b/testing/web-platform/tests/intersection-observer/same-document-zero-size-target.html new file mode 100644 index 0000000000..20bd11d4be --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/same-document-zero-size-target.html @@ -0,0 +1,62 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/same-origin-grand-child-iframe.sub.html b/testing/web-platform/tests/intersection-observer/same-origin-grand-child-iframe.sub.html new file mode 100644 index 0000000000..a311a8732a --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/same-origin-grand-child-iframe.sub.html @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/shadow-content.html b/testing/web-platform/tests/intersection-observer/shadow-content.html new file mode 100644 index 0000000000..ce9473cb79 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/shadow-content.html @@ -0,0 +1,45 @@ + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/target-in-detached-document.html b/testing/web-platform/tests/intersection-observer/target-in-detached-document.html new file mode 100644 index 0000000000..6a5cf1e811 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/target-in-detached-document.html @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/target-in-different-window.html b/testing/web-platform/tests/intersection-observer/target-in-different-window.html new file mode 100644 index 0000000000..fcf5ba9437 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/target-in-different-window.html @@ -0,0 +1,41 @@ + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/target-is-root.html b/testing/web-platform/tests/intersection-observer/target-is-root.html new file mode 100644 index 0000000000..1fe2ae6e17 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/target-is-root.html @@ -0,0 +1,35 @@ + +IntersectionObserver when root == target doesn't compute an intersection + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/intersection-observer/text-target.html b/testing/web-platform/tests/intersection-observer/text-target.html new file mode 100644 index 0000000000..1abe5357c2 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/text-target.html @@ -0,0 +1,63 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/timestamp.html b/testing/web-platform/tests/intersection-observer/timestamp.html new file mode 100644 index 0000000000..3f573bcd88 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/timestamp.html @@ -0,0 +1,100 @@ + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/unclipped-root.html b/testing/web-platform/tests/intersection-observer/unclipped-root.html new file mode 100644 index 0000000000..a59105e33e --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/unclipped-root.html @@ -0,0 +1,58 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/animated-occlusion.html b/testing/web-platform/tests/intersection-observer/v2/animated-occlusion.html new file mode 100644 index 0000000000..fa69733b9f --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/animated-occlusion.html @@ -0,0 +1,73 @@ + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/blur-filter.html b/testing/web-platform/tests/intersection-observer/v2/blur-filter.html new file mode 100644 index 0000000000..8cf63066e1 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/blur-filter.html @@ -0,0 +1,65 @@ + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/box-shadow.html b/testing/web-platform/tests/intersection-observer/v2/box-shadow.html new file mode 100644 index 0000000000..765fa8b2d5 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/box-shadow.html @@ -0,0 +1,67 @@ + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/cross-origin-effects.sub.html b/testing/web-platform/tests/intersection-observer/v2/cross-origin-effects.sub.html new file mode 100644 index 0000000000..5f328bec99 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/cross-origin-effects.sub.html @@ -0,0 +1,65 @@ + + + + + + + + +
+ +
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/cross-origin-occlusion.sub.html b/testing/web-platform/tests/intersection-observer/v2/cross-origin-occlusion.sub.html new file mode 100644 index 0000000000..4c2f286afb --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/cross-origin-occlusion.sub.html @@ -0,0 +1,69 @@ + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/delay-test.html b/testing/web-platform/tests/intersection-observer/v2/delay-test.html new file mode 100644 index 0000000000..e3906ea2c2 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/delay-test.html @@ -0,0 +1,89 @@ + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/drop-shadow-filter-vertical-rl.html b/testing/web-platform/tests/intersection-observer/v2/drop-shadow-filter-vertical-rl.html new file mode 100644 index 0000000000..fc5b145e1f --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/drop-shadow-filter-vertical-rl.html @@ -0,0 +1,66 @@ + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/iframe-target.html b/testing/web-platform/tests/intersection-observer/v2/iframe-target.html new file mode 100644 index 0000000000..53fbff86b7 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/iframe-target.html @@ -0,0 +1,45 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/intersection-observer/v2/inline-occlusion.html b/testing/web-platform/tests/intersection-observer/v2/inline-occlusion.html new file mode 100644 index 0000000000..e4b097e62a --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/inline-occlusion.html @@ -0,0 +1,62 @@ + + + + + + + +
This is the target.
+
This is the occluder.
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/position-absolute-overflow-visible-and-not-visible.html b/testing/web-platform/tests/intersection-observer/v2/position-absolute-overflow-visible-and-not-visible.html new file mode 100644 index 0000000000..c74d4c2021 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/position-absolute-overflow-visible-and-not-visible.html @@ -0,0 +1,51 @@ + + + + + + + + + + +
+
+
+ + + \ No newline at end of file diff --git a/testing/web-platform/tests/intersection-observer/v2/position-relative.html b/testing/web-platform/tests/intersection-observer/v2/position-relative.html new file mode 100644 index 0000000000..4cdc429570 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/position-relative.html @@ -0,0 +1,49 @@ + + + + + + + + +
+
+ +
+
+ + + diff --git a/testing/web-platform/tests/intersection-observer/v2/scaled-target.html b/testing/web-platform/tests/intersection-observer/v2/scaled-target.html new file mode 100644 index 0000000000..f48f0792d0 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/scaled-target.html @@ -0,0 +1,62 @@ + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/simple-effects.html b/testing/web-platform/tests/intersection-observer/v2/simple-effects.html new file mode 100644 index 0000000000..baf32203c7 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/simple-effects.html @@ -0,0 +1,72 @@ + + + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/simple-occlusion-svg-foreign-object.html b/testing/web-platform/tests/intersection-observer/v2/simple-occlusion-svg-foreign-object.html new file mode 100644 index 0000000000..588ec2abd6 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/simple-occlusion-svg-foreign-object.html @@ -0,0 +1,71 @@ + + + + + + + + +
+ + +
+
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/simple-occlusion.html b/testing/web-platform/tests/intersection-observer/v2/simple-occlusion.html new file mode 100644 index 0000000000..f3ce518b34 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/simple-occlusion.html @@ -0,0 +1,67 @@ + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/text-editor-occlusion.html b/testing/web-platform/tests/intersection-observer/v2/text-editor-occlusion.html new file mode 100644 index 0000000000..2edb7bbbe6 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/text-editor-occlusion.html @@ -0,0 +1,62 @@ + + + + + + + +
Target:
+
This is the occluder.
+ + diff --git a/testing/web-platform/tests/intersection-observer/v2/text-shadow.html b/testing/web-platform/tests/intersection-observer/v2/text-shadow.html new file mode 100644 index 0000000000..cdfc1a2d2a --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/v2/text-shadow.html @@ -0,0 +1,70 @@ + + + + + + + + +
O
+ + diff --git a/testing/web-platform/tests/intersection-observer/zero-area-element-hidden.html b/testing/web-platform/tests/intersection-observer/zero-area-element-hidden.html new file mode 100644 index 0000000000..be57ac6983 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/zero-area-element-hidden.html @@ -0,0 +1,44 @@ + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/intersection-observer/zero-area-element-visible.html b/testing/web-platform/tests/intersection-observer/zero-area-element-visible.html new file mode 100644 index 0000000000..b012b65c18 --- /dev/null +++ b/testing/web-platform/tests/intersection-observer/zero-area-element-visible.html @@ -0,0 +1,45 @@ + + + + + + + + +
+
+
+ + -- cgit v1.2.3