summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
parentInitial commit. (diff)
downloadfirefox-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/writing-system/writing-system-line-break-001.html')
-rw-r--r--testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html b/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
new file mode 100644
index 0000000000..6d52672b89
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test: writing system and line breaking</title>
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+<link rel=help href="https://drafts.csswg.org/css-text-3/#languages">
+<link rel=help href="https://drafts.csswg.org/css-text-3/#script-tagging">
+<link rel=help href="https://drafts.csswg.org/css-text-3/#propdef-line-break">
+<link rel=match href="reference/writing-system-line-break-001-ref.html">
+<meta name=assert content="breaks before U+301C when line-break is loose are allowed if the content language is Japanese,
+but not when the writing system is not Japanese/Chinese (e.g. Korean).">
+<style>
+div {
+ font-family: monospace;
+ width: 2em;
+ line-break: loose;
+}
+[lang=ja] { border: solid blue; }
+[lang=ja-Hang] { border: solid orange; }
+</style>
+
+<p>The test passes if the second line in the blue box below <em>starts with</em> a “〜”,
+and if the second line in the orange box below <em>ends with</em> a “〜”.
+
+<div lang=ja>東京〜大阪</div>
+<div lang=ja-Hang>도쿄〜오사카</div>