Bug 1497436 [wpt PR 13430] - [css-text][css-fonts] Testing writing system dependent rules, a=testonly
authorFlorian Rivoal <git@florian.rivoal.net>
Mon, 19 Nov 2018 18:44:56 +0000
changeset 503970 2cf194f546b2f3818e7f79b4e13bb0cc4e5f37cc
parent 503969 f3f2be0cb3a60faebeea01707113df9e53a0f1fe
child 503971 352b5143230ba1789b81a6124543cd604d2ec625
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1497436, 13430
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1497436 [wpt PR 13430] - [css-text][css-fonts] Testing writing system dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to https://github.com/w3c/csswg-drafts/issues/2015 -- fix typo Co-Authored-By: frivoal <git@florian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430
testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-font-001-ref.html
testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-line-break-001-ref.html
testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-line-break-002-ref.html
testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-segment-break-001-ref.html
testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-text-transform-001-ref.html
testing/web-platform/tests/css/css-text/writing-system/writing-system-font-001.html
testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-002.html
testing/web-platform/tests/css/css-text/writing-system/writing-system-segment-break-001.html
testing/web-platform/tests/css/css-text/writing-system/writing-system-text-transform-001.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-font-001-ref.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test reference</title>
+<link rel=author title="Ambrose Li" href="http://port.ambroseli.ca/">
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+
+<p>The test passes if the word pairs below are all displayed in the same font.
+
+<table>
+  <tr>
+    <td>ping4 on1
+    <td>salaam
+    <td>shalom
+  <tr>
+    <td>ping4 on1
+    <td>salaam
+    <td>shalom
+</table>
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-line-break-001-ref.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test reference</title>
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+<style>
+div {
+  font-family: monospace;
+}
+</style>
+
+<p>The test passes if the first line below ends with a hyphen.
+
+<div lang=ja-Latn>Fushimi&#x2010;<br>ku</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-line-break-002-ref.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test reference</title>
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+<style>
+</style>
+
+<p>The test passes if the question mark in the phrase below is alone on the second line.
+
+<div lang=en-Hrkt>ハロー、ハウアーユー<br>?</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-segment-break-001-ref.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test reference</title>
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+
+<p>The test passes if the both lines are identical, including the spacing of the characters.
+
+<div lang=ain-Kana>“アイヌイタㇰ”</div>
+<div lang=ain-Kana>“アイヌイタㇰ”</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/reference/writing-system-text-transform-001-ref.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test reference</title>
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+<style>
+div {
+  font-size: 3em;
+}
+</style>
+<p>Test passes if the two words below are identical: there must be a dot on the “i” letter at the beginning of the word.
+<div lang=tr-Cyrl>iстанбул</div>
+<div lang=tr-Cyrl>iстанбул</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-font-001.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test: font selection and writing sytem</title>
+<link rel=author title="Ambrose Li" href="http://port.ambroseli.ca/">
+<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-fonts-4/#language-specific-support">
+<link rel=match href="reference/writing-system-font-001-ref.html">
+<meta name=assert content="An explicit writing system takes precedence over the content language for font selection">
+
+<p>The test passes if the word pairs below are all displayed in the same font.
+
+<table>
+  <tr>
+    <td>ping4 on1
+    <td>salaam
+    <td>shalom
+  <tr>
+    <td><span lang=zh-yue-latn>ping4 on1</span>
+    <td><span lang=ar-latn>salaam</span>
+    <td><span lang=he-latn>shalom</span>
+</table>
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-001.html
@@ -0,0 +1,22 @@
+<!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 hyphens when line-break is loose are allowed if the content language is Japanese,
+but not when the writing system is Latin.">
+<style>
+div {
+  font-family: monospace;
+  width: 7ch;
+  line-break: loose;
+}
+</style>
+
+<p>The test passes if the first line below ends with a hyphen.
+
+<div lang=ja-Latn>Fushimi&#x2010;ku</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-line-break-002.html
@@ -0,0 +1,22 @@
+<!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-002-ref.html">
+<meta name=assert content="breaks before U+FF1F when line-break is loose are allowed
+if the writing system is Japanese (which includes Hrkt),
+but even when the language not Japanese.">
+<style>
+div {
+  width: 10em;
+  line-break: loose;
+}
+</style>
+
+<p>The test passes if the question mark in the phrase below is on alone on the second line.
+
+<div lang=en-Hrkt>ハロー、ハウアーユー?</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-segment-break-001.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test: writing system and segment break transformation</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/#line-break-transform">
+<link rel=match href="reference/writing-system-segment-break-001-ref.html">
+<meta name=assert content="If the writing system of the segment break is Chinese, Japanese, or Yi,
+and the character before or after the segment break is punctuation or a symbol (Unicode general category P* or S*)
+and has an East Asian Width property of A or is Emoji,
+and the character on the other side of the segment break is F, W, or H, and not Hangul or Emoji,
+then the segment break is removed.">
+<!--
+In this case, checking with “ and ” which are punctuation with East Asian Width of A,
+next to Katakana letters (which are W),
+while the writing system is Katakana, which is classified as Japanese,
+despite a non Japanese content language (Ainu).
+-->
+
+<p>The test passes if the both lines are identical, including the spacing of the characters.
+
+<div lang=ain-Kana>“
+アイヌイタㇰ
+”</div>
+<div lang=ain-Kana>“アイヌイタㇰ”</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/writing-system/writing-system-text-transform-001.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html lang=en>
+<meta charset=utf-8>
+<title>CSS test: text-transform and writing systems</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-text-transform">
+<link rel=match href="reference/writing-system-text-transform-001-ref.html">
+<meta name=assert content="text transform rules that depend on the language are overriden by a contradicting explicit script tag.">
+<style>
+div {
+  text-transform: lowercase;
+  font-size: 3em;
+}
+</style>
+<p>Test passes if the two words below are identical: there must be a dot on the “i” letter at the beginning of the word.
+<div lang=tr-Cyrl>IСТАНБУЛ</div>
+<div lang=tr-Cyrl>iстанбул</div>