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-text-decor/text-decoration-thickness-ink-skip-dilation.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-text-decor/text-decoration-thickness-ink-skip-dilation.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text-decor/text-decoration-thickness-ink-skip-dilation.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text-decor/text-decoration-thickness-ink-skip-dilation.html b/testing/web-platform/tests/css/css-text-decor/text-decoration-thickness-ink-skip-dilation.html new file mode 100644 index 0000000000..e6bdd616cc --- /dev/null +++ b/testing/web-platform/tests/css/css-text-decor/text-decoration-thickness-ink-skip-dilation.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Text Decoration Test: Ink skipping extends only a small distance away from glyph</title> +<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property"> +<meta name="assert" content="Ink skipping gap is capped at a small distance and does not continuously grow with text-decoration-thickness."> +<link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org"> +<link rel="match" href="reference/text-decoration-thickness-ink-skip-dilation-ref.html"> +<style> +@font-face { +font-family: underline-variable; +src: url(resources/UnderlineTest-VF.ttf); +} + +.test_red { +font-family: underline-variable; +font-size: 64px; +} + +.underline { +text-decoration: underline; +text-underline-position: from-font; +text-decoration-thickness: 13px; +text-decoration-color: red; +} + +.test_green { +text-decoration: underline; +font-family: underline-variable; +text-underline-position: from-font; +text-decoration-thickness: 25px;; +font-size: 64px; +text-decoration-color: green; +} + +.overlap { +position: absolute; +left: 20px; +top: 25px; +} +</style> +</head> +<body> +<p>Test passes if no blips of red underline show near the descender of the g glyph.</p> +<div class="test"> +<div class="test_red overlap">a<span class="underline">aaaagaaaa</span>a</div> +<div class="test_green overlap">aaaaagaaaaa</div> +</div> +</div> +</body> +</html> |