summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/tests/css/css-contain/content-visibility
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility')
-rw-r--r--testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001-ref.html29
-rw-r--r--testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001.html35
2 files changed, 64 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001-ref.html b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001-ref.html
new file mode 100644
index 0000000000..8d9bd96f7e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <meta charset="utf-8">
+ <title>content-visibility and intrinsic size (reference)</title>
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <script src="/common/rendering-utils.js"></script>
+ <style>
+ #container {
+ position: sticky;
+ }
+ #container > div {
+ font: 25px/1 Ahem;
+ }
+ </style>
+ <div id="container">
+ <div>X</div>
+ <div id="target">XX</div>
+ <div>XXX</div>
+ <div>XXXX</div>
+ </div>
+ <script>
+ target.scrollIntoView();
+ document.fonts.ready.then(() => {
+ waitForAtLeastOneFrame().then(() => {
+ document.documentElement.classList.remove("reftest-wait");
+ });
+ });
+ </script>
+</html>
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001.html b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001.html
new file mode 100644
index 0000000000..3a378d17e8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-intrinsic-size-001.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <meta charset="utf-8">
+ <title>content-visibility and intrinsic size</title>
+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1880928">
+ <link rel="match" href="content-visibility-intrinsic-size-001-ref.html">
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <meta name="assert" content="Rendering of should stabilize, with all the 'content-visibility: auto' divs becoming close to viewport.">
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <script src="/common/rendering-utils.js"></script>
+ <style>
+ #container {
+ position: sticky;
+ }
+ #container > div {
+ font: 25px/1 Ahem;
+ content-visibility: auto;
+ contain-intrinsic-size: 1px 5000px;
+ }
+ </style>
+ <div id="container">
+ <div>X</div>
+ <div id="target">XX</div>
+ <div>XXX</div>
+ <div>XXXX</div>
+ </div>
+ <script>
+ target.scrollIntoView();
+ document.fonts.ready.then(() => {
+ waitForAtLeastOneFrame().then(() => {
+ document.documentElement.classList.remove("reftest-wait");
+ });
+ });
+ </script>
+</html>