summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html')
-rw-r--r--testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html b/testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html
new file mode 100644
index 0000000000..9c24210c25
--- /dev/null
+++ b/testing/web-platform/tests/css/css-position/position-absolute-crash-chrome-007.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<title>CSS Position Absolute: Chrome crash</title>
+<link rel="author" href="mailto:atotic@chromium.org">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<link rel="help" href="https://crbug.com/945696">
+<meta name="assert" content="Absolute descendant inside multiple nested split inlines does not crash.">
+<style>
+ body {
+ overflow: hidden;
+ margin: 0px;
+ font-size: 24px;
+ }
+ #block-container {
+ position: relative;
+ }
+ #css-container {
+ position: relative;
+ font-size: 12px;
+ }
+ #anonymous-parent {
+ background-color: #FFFF7F;
+ }
+ #anonymous-split {
+ background-color: #FFD997;
+ }
+ #css-container {
+ background-color: #BEE0FF;
+ }
+ #abs {
+ background-color: rgba(0, 255, 0, 0.5);
+ position:absolute;
+ top: 0px;
+ left: 0px;
+ }
+ #fullabs {
+ background-color: rgba(0, 255, 0, 0.5);
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ }
+</style>
+<div id="block-container">
+ <span id="anonymous-parent">
+ parent <br>start
+ <span id="anonymous-split">
+ split start
+ <div id="splitter" >splitter</div>
+ split middle
+ <span id="css-container">
+ css-container start
+ <div id="abs">ABS</div>
+ <div id="fullabs">FULLABS</div>
+ css container end
+ </span>
+ split end
+ </span>
+ parent end
+ </span>
+</div>
+<script>
+document.body.offsetTop;
+ test(() => {
+ }, 'test passes if it does not crash');
+</script>
+