diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/css/css-text/text-spacing-trim | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-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-text/text-spacing-trim')
2 files changed, 79 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html new file mode 100644 index 0000000000..072fd1e917 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001-ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<script src="support/variant-class.js"></script> +<style> +@font-face { + font-family: halt-font; + src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf'); +} +#container { + font-family: halt-font; + font-size: 20px; + inline-size: 4em; + text-spacing-trim: space-all; +} +.vrl { + writing-mode: vertical-rl; +} +halt { + font-feature-settings: 'halt' 1, 'vhal' 1; +} +.trim-start { + ps, ls { font-feature-settings: 'halt' 1, 'vhal' 1; } +} +.space-first { + ls { font-feature-settings: 'halt' 1, 'vhal' 1; } +} +</style> +<div id="container"> + <div>国)<halt>(国</halt></div> + <div>国国国)<ls>(国</ls></div> +</div> diff --git a/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html new file mode 100644 index 0000000000..623abbf7c7 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-span-001.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="help" href="https://drafts.csswg.org/css-text-4/#text-spacing-trim-property"> +<link rel="match" href="text-spacing-trim-span-001-ref.html"> +<meta name="variant" content="?class=halt,htb"> +<meta name="variant" content="?class=chws,htb"> +<meta name="variant" content="?class=halt,vrl"> +<meta name="variant" content="?class=chws,vrl"> +<meta name="variant" content="?class=space-first,halt,htb"> +<meta name="variant" content="?class=space-first,chws,htb"> +<meta name="variant" content="?class=space-first,halt,vrl"> +<meta name="variant" content="?class=space-first,chws,vrl"> +<meta name="variant" content="?class=trim-start,halt,htb"> +<meta name="variant" content="?class=trim-start,chws,htb"> +<meta name="variant" content="?class=trim-start,halt,vrl"> +<meta name="variant" content="?class=trim-start,chws,vrl"> +<script src="support/variant-class.js"></script> +<style> +@font-face { + font-family: halt-font; + src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf'); +} +@font-face { + font-family: chws-font; + src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-chws.otf'); +} +#container { + font-family: halt-font; + font-size: 20px; + inline-size: 4em; +} +.chws #container { + font-family: chws-font; +} +.vrl { + writing-mode: vertical-rl; +} +.trim-start { + text-spacing-trim: trim-start; +} +.space-first { + text-spacing-trim: space-first; +} +</style> +<div id="container"> + <div>国)<span>(国</span></div> + <div>国国国)<span>(国</span></div> +</div> |