diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/font-features/1376231-vertical-gpos-adjustments.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/font-features/1376231-vertical-gpos-adjustments.html')
-rw-r--r-- | layout/reftests/font-features/1376231-vertical-gpos-adjustments.html | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/layout/reftests/font-features/1376231-vertical-gpos-adjustments.html b/layout/reftests/font-features/1376231-vertical-gpos-adjustments.html new file mode 100644 index 0000000000..0b0f9b9da2 --- /dev/null +++ b/layout/reftests/font-features/1376231-vertical-gpos-adjustments.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset=utf-8> +<style> +@font-face { + font-family: test; + src: url(../fonts/NotoSansCJKjp-Regular.subset.otf); +} +body { + font-family: test, serif; + line-height: 2em; +} +p { + margin: 1em; +} +span { + display: inline-block; +} +.v { + writing-mode: vertical-rl; +} +.halt { + font-feature-settings: "halt"; + /* there are 3 characters in the text that should be affected by 'halt', + so if we add 1.5em of padding, the overall width will be the same */ + padding-inline-end: 1.5em; +} +.palt { + font-feature-settings: "palt"; + /* 'palt' results in even tighter spacing than 'halt', so we can add a + little more padding and the result should still be obscured by the + overlaid 'halt' span. (We don't try for an exact match as this involves + fractional pixel widths and would be very fragile.) */ + padding-inline-end: 1.6em; +} +.vhal { + font-feature-settings: "vhal"; + padding-inline-end: 1.5em; +} +.vpal { + font-feature-settings: "vpal"; + padding-inline-end: 1.6em; +} +.red { + color: red; + background: red; +} +.green { + color: green; + background: green; +} +.overlay { + position: relative; + inset-block-start: -3em; +} +</style> +</head> +<body> +There should be no red: +<div> + <!-- check that the red 'halt' span is entirely hidden by the green default span --> + <p><span class="halt red">やっほう、「世界」</p> + <p class="overlay"><span class="green">やっほう、「世界」</p> + <!-- check that the red 'palt' span is entirely hidden by the green default span --> + <p><span class="palt red">やっほう、「世界」</p> + <p class="overlay"><span class="green">やっほう、「世界」</p> +</div> +<div class="v"> + <!-- check the equivalent vertical-mode features --> + <p><span class="vhal red">やっほう、「世界」</p> + <p class="overlay"><span class="green">やっほう、「世界」</p> + <p><span class="vpal red">やっほう、「世界」</p> + <p class="overlay"><span class="green">やっほう、「世界」</p> +</div> |