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:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/css/css-contain/content-visibility
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.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>