summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/linebox/crashtests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/CSS2/linebox/crashtests
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/linebox/crashtests')
-rw-r--r--testing/web-platform/tests/css/CSS2/linebox/crashtests/dir-change-simplifed-crash.html16
-rw-r--r--testing/web-platform/tests/css/CSS2/linebox/crashtests/inline-block-baseline-crash.html12
2 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/linebox/crashtests/dir-change-simplifed-crash.html b/testing/web-platform/tests/css/CSS2/linebox/crashtests/dir-change-simplifed-crash.html
new file mode 100644
index 0000000000..4e05bc8cb9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/linebox/crashtests/dir-change-simplifed-crash.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css2/#direction">
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<style>
+body, div { position: absolute; }
+body { direction: rtl; white-space: pre-line; }
+</style>
+<body>&#x20;&#x20;&#xA;'123456789<div>&#x20;</div>
+<script>
+ // Force layout and await paint
+ document.body.offsetLeft;
+ requestAnimationFrame(() => requestAnimationFrame(() => {
+ document.querySelector("div").dir = "ltr";
+ }));
+</script>
+</body>
diff --git a/testing/web-platform/tests/css/CSS2/linebox/crashtests/inline-block-baseline-crash.html b/testing/web-platform/tests/css/CSS2/linebox/crashtests/inline-block-baseline-crash.html
new file mode 100644
index 0000000000..8c88583c55
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/linebox/crashtests/inline-block-baseline-crash.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css2/#propdef-vertical-align">
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<style>
+div::after {
+ display: layout(parent);
+ content: "";
+}
+</style>
+<body style="columns: 2">
+ <div style="display: inline-block"></div>
+</body>