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-text/line-break/line-break-strict-012.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-text/line-break/line-break-strict-012.xht')
-rw-r--r-- | testing/web-platform/tests/css/css-text/line-break/line-break-strict-012.xht | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/line-break/line-break-strict-012.xht b/testing/web-platform/tests/css/css-text/line-break/line-break-strict-012.xht new file mode 100644 index 0000000000..d01b53f622 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/line-break/line-break-strict-012.xht @@ -0,0 +1,66 @@ +<?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 Text Test: line-break - strict and Katakana-Hiragana prolonged sound marks</title> + <!-- Katakana-Hiragana prolonged sound marks --> + <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" /> + <link rel="author" title="Shinyu Murakami" href="mailto:murakami@vivliostyle.org" /> + <link rel="help" title="5.3. Line Breaking Rules: the 'line-break' property" href="https://drafts.csswg.org/css-text-3/#line-break-property" /> + <link rel="match" href="reference/line-break-strict-012-ref.xht" /> + <meta http-equiv="content-language" content="en, ja" /> + <meta name="assert" content="This test verifies that 'line-break: strict' does not allow line breaking before Katakana-Hiragana prolonged sound marks such as (U+30FC) and (U+FF70)." /> + <style type="text/css"> + @font-face + { + font-family: "mplus-1p-regular"; + src: url("/fonts/mplus-1p-regular.woff") format("woff"); + /* filesize: 803300 bytes (784.5 KBytes) */ + /* + mplus-1p-regular.ttf can be downloaded at/from [TBD later] + */ + } + .test span { + line-break: strict; /* The property to be tested */ + } + p.test, p.control { + border: 1px solid gray; + color: blue; + font-family: "mplus-1p-regular"; + width: 10.2em; /* added extra .2em for some symbols wider than 1em */ + } + span.target { + background-color: aqua; + } + div.wrapper { + display: inline-block; + border: 1px solid; + margin: 10px; + padding: 10px; + } + </style> + </head> + <body lang="en"> + <p> + Test passes if the highlighted characters in each pair of rectangles are at the exact same horizontal position. + </p> + <div class="wrapper"> + <!-- Katakana-Hiragana prolonged sound mark - fullwidth --> + <p class="test" lang="ja"> + <span>サンプル文サンプル文<span class="target">ー</span>サンプル文</span> + </p> + <p class="control" lang="ja"> + <span>サンプル文サンプル<br />文<span class="target">ー</span>サンプル文</span> + </p> + </div> + <div class="wrapper"> + <!-- Katakana-Hiragana prolonged sound mark - halfwidth --> + <p class="test" lang="ja"> + <span>サンプル文サンプル文<span class="target">ー</span>サンプル文</span> + </p> + <p class="control" lang="ja"> + <span>サンプル文サンプル<br />文<span class="target">ー</span>サンプル文</span> + </p> + </div> + </body> +</html> |