diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-pseudo/marker-content-022.html | |
parent | Initial commit. (diff) | |
download | firefox-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-pseudo/marker-content-022.html')
-rw-r--r-- | testing/web-platform/tests/css/css-pseudo/marker-content-022.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-pseudo/marker-content-022.html b/testing/web-platform/tests/css/css-pseudo/marker-content-022.html new file mode 100644 index 0000000000..56863bee70 --- /dev/null +++ b/testing/web-platform/tests/css/css-pseudo/marker-content-022.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<meta charset="utf-8"> +<title>CSS Test: ::marker pseudo elements styled with 'content' property</title> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> +<link rel="match" href="marker-content-022-ref.html"> +<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> +<link rel="help" href="https://drafts.csswg.org/css-lists/#list-style-position-outside"> +<meta name="assert" content="When a list item with an outside marker only has an inline child + with a block grandchild, some browsers insert a newline between the marker and the block, + and some don't. It's not clear what should happen, but this test checks that the behavior + is consistent whether the block is inserted dynamically or was there from the beginning."> +<style> +.symbol { + list-style-type: disc; +} +.decimal { + list-style-type: decimal; +} +.string { + list-style-type: "string"; +} +.content::marker { + content: "content"; +} +</style> +<ol> + <li class="symbol"><span></span></li> + <li class="decimal"><span></span></li> + <li class="string"><span></span></li> + <li class="content"><span></span></li> +</ol> +<script src="/common/reftest-wait.js"></script> +<script> +// Use a "load" event listener and requestAnimationFrame to ensure that +// the markers will have been laid out. +addEventListener("load", () => requestAnimationFrame(() => { + const div = document.createElement("div"); + div.appendChild(document.createTextNode("foo")); + for (let span of document.querySelectorAll("li > span")) { + span.appendChild(div.cloneNode(true)); + } + takeScreenshot(); +}), {once: true}); +</script> +</html> |