diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht')
-rw-r--r-- | testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht b/testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht new file mode 100644 index 0000000000..511854d653 --- /dev/null +++ b/testing/web-platform/tests/css/css-writing-modes/text-orientation-upright-vrl-002.xht @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Writing Modes Test: text-orientation - upright in vertical-rl writing mode</title> + <link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" /> + <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-12-24 and 2016-12-11 --> + <link rel="help" title="5.1. Orienting Text" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" /> + <meta name="flags" content="image" /> + <meta name="assert" content="This test checks that latin alphabet characters are translated upright (and not rotated sideways)." /> + <style type="text/css"><![CDATA[ + @font-face + { + font-family: "mplus-1p-regular"; + src: url("/fonts/mplus-1p-regular.woff") format("woff"); + } + + div { + float: left; + color: blue; + font-family: "mplus-1p-regular"; + font-size: 24px; /* we must try to avoid a too tall div which could generate 2 line boxes; so we use a smaller font size */ + line-height: 1.5; /* equivalent to 36px: + so that top-half-leading outside content is 6px + and bottom-half-leading outside content is 6px */ + margin: 10px; + } + + div#vertical + { + border: 1px solid gray; + writing-mode: vertical-rl; + text-orientation: upright; + } + + img {vertical-align: top;} + + ]]></style> + </head> + <body> + + <p>Test passes if characters in both "Text sample" rectangles have the <strong>same order</strong> and the <strong>same orientation</strong>: both "Text sample" should be translated upright. Note that a different inter-character spacing is considered as PASS.</p> + + <div id="vertical">Text sample</div> + + <!-- + HTML Entity (decimal) T or HTML Entity (hex) T is Unicode Character 'FULLWIDTH LATIN CAPITAL LETTER T' + More info: + http://lists.w3.org/Archives/Public/public-css-testsuite/2015Dec/0008.html + --> + + <div><img src="support/text-orientation-upright-vrl-002.png" width="38" height="376" alt="Image download support must be enabled" /></div> + + </body> +</html> |