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-fonts/size-adjust-text-decoration.tentative.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-fonts/size-adjust-text-decoration.tentative.html')
-rw-r--r-- | testing/web-platform/tests/css/css-fonts/size-adjust-text-decoration.tentative.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-fonts/size-adjust-text-decoration.tentative.html b/testing/web-platform/tests/css/css-fonts/size-adjust-text-decoration.tentative.html new file mode 100644 index 0000000000..f1183dcf20 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/size-adjust-text-decoration.tentative.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<!-- Test is tentative due to the following issues: + - https://github.com/w3c/csswg-drafts/issues/6112 + - https://github.com/w3c/csswg-drafts/issues/6114 +--> +<title>Tests interaction between the size-adjust descriptor of @font-face and text decoration</title> +<link rel="help" href="https://drafts.csswg.org/css-fonts-5/#descdef-font-face-size-adjust"> +<link rel="author" href="mailto:xiaochengh@chromium.org"> +<link rel="match" href="size-adjust-text-decoration-tentative-ref.html"> +<link rel="assert" title="size-adjust should not affect em- or percentage-based values, but affects 'from-font'"> + +<style> +@font-face { + font-family: custom-font; + src: local(Ahem), url(/fonts/Ahem.ttf); + size-adjust: 50%; +} + +.target { + margin: 20px; + font-size: 20px; + font-family: custom-font, sans-serif; + text-decoration-line: underline; + text-decoration-style: solid; + text-decoration-color: black; +} +</style> + +<p>size-adjust should not affect em- or percentage-based text-underline-offset.</p> + +<!-- We fix thickness because the default thickness value 'auto' allows browser-specific behaviors. --> + +<div class="target" style="text-underline-offset: 0.1em; text-decoration-thickness: 1px;"> + É +</div> + +<div class="target" style="text-underline-offset: 10%; text-decoration-thickness: 1px;"> + É +</div> + +<p>size-adjust should not affect em- or percentage-based text-decoration-thickness.</p> + +<div class="target" style="text-decoration-thickness: 0.1em"> + É +</div> + +<div class="target" style="text-decoration-thickness: 10%"> + É +</div> + +<p>size-adjust should affect 'text-underline-thickness: from-font', which is a metric obtained from the font file. The underline should be 50% as thick as original.</p> +<div class="target" style="text-decoration-thickness: from-font"> + É +</div> |