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-mixed-vrl-002.xht | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.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-mixed-vrl-002.xht')
-rw-r--r-- | testing/web-platform/tests/css/css-writing-modes/text-orientation-mixed-vrl-002.xht | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/text-orientation-mixed-vrl-002.xht b/testing/web-platform/tests/css/css-writing-modes/text-orientation-mixed-vrl-002.xht new file mode 100644 index 0000000000..506b9d7ff6 --- /dev/null +++ b/testing/web-platform/tests/css/css-writing-modes/text-orientation-mixed-vrl-002.xht @@ -0,0 +1,56 @@ +<?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 - mixed in vertical-rl writing mode</title> + <link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" /> + <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" title="5.1 Orienting Text: the 'text-orientation' property" 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 when 'text-orientation' is set to 'mixed', then latin alphabet characters are displayed sideways (rotated 90 degrees clockwise). In this test, the 'FULLWIDTH LATIN CAPITAL LETTER T' must be typeset upright." /> + <style type="text/css"><![CDATA[ + @font-face + { + font-family: "mplus-1p-regular"; + src: url("/fonts/mplus-1p-regular.woff") format("woff"); + /* filesize: 803300 bytes (784.5 KBytes) */ + } + + div + { + float: left; + color: blue; + font-family: "mplus-1p-regular"; + font-size: 30px; + line-height: 1.4; /* equivalent to 42px: + so that top-half-leading outside content area is 6px + and bottom-half-leading outside content area is 6px */ + margin: 10px; + } + + div#vertical + { + border: 1px solid gray; + text-orientation: mixed; + writing-mode: vertical-rl; + } + + img {vertical-align: top;} + + ]]></style> + </head> + <body> + + <p>Test passes if characters in both "Text sample" rectangles have the <strong>same order</strong>, <strong>same layout</strong> and the <strong>same orientation</strong>: "T" should be upright and "ext sample" should be rotated 90° clockwise.</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-mixed-vrl-002.png" width="44" height="198" alt="Image download support must be enabled" /></div> + + </body> +</html> |