aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-text
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-05-20 08:20:23 +0000
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-05-20 11:11:35 +0000
commit9309f626be9d30732ad801e88d48ec04c85cb650 (patch)
treea691dafc28499e1f388e49c1a45631ee007c069e /tests/wpt/web-platform-tests/css/css-text
parent7e74f733016f2d384791fddcf0c5071cbce3e7cb (diff)
downloadservo-9309f626be9d30732ad801e88d48ec04c85cb650.tar.gz
servo-9309f626be9d30732ad801e88d48ec04c85cb650.zip
Update web-platform-tests to revision cf926057109b153af54214d52a2b3d746269d434
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-text')
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-001-ref.html25
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-002-ref.html28
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-001.html30
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-002.html34
4 files changed, 117 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-001-ref.html b/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-001-ref.html
new file mode 100644
index 00000000000..f1b3ee100d0
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-001-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>shaping: Arabic diacritics on NBSP - reference</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
+<style type="text/css">
+@font-face {
+ font-family: ArabicTest;
+ src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
+}
+.test {
+ font: 120px/2 ArabicTest, sans-serif;
+}
+</style>
+</head>
+<body>
+ <p class="instructions">Test passes if the two lines are rendered identically,
+ with the superscript alef (&#x627;) directly above the raised hamza (&#x621;).</p>
+ <!-- Order of lines is reversed from the testcase; if they render identically
+ they should still match perfectly. -->
+ <div class=test>a<span dir=rtl>&nbsp;&#x670;&#x654;</span>z</div>
+ <div class=test>a<span dir=rtl>&nbsp;&#x654;&#x670;</span>z</div>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-002-ref.html b/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-002-ref.html
new file mode 100644
index 00000000000..d145e72ed85
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/shaping/reference/shaping-arabic-diacritics-002-ref.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>shaping: Arabic diacritics on NBSP - reference</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
+<style type="text/css">
+@font-face {
+ font-family: ArabicTest;
+ src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
+}
+.test {
+ font: 120px/2 ArabicTest, sans-serif;
+}
+.test span {
+ padding: .1em .05em 0;
+ background: black;
+}
+</style>
+</head>
+<body>
+ <p class="instructions">Test passes if the Arabic diacritics are entirely hidden by the black boxes.</p>
+ <!-- Diacritics removed from the test lines, as they should have been completely obscured
+ by the black background anyhow. -->
+ <div class=test>a<span dir=rtl>&nbsp;</span>z</div>
+ <div class=test>a<span dir=rtl>&nbsp;</span>z</div>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-001.html b/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-001.html
new file mode 100644
index 00000000000..c7eee3481ab
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-001.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>shaping: Arabic diacritics on NBSP</title>
+<meta name="assert" content="Shaping must work for diacritics rendered on NBSP as base">
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
+<link rel="help" href="https://www.unicode.org/versions/Unicode13.0.0/ch02.pdf">
+<link rel="help" href="https://www.unicode.org/reports/tr53/">
+<link rel="match" href="reference/shaping-arabic-diacritics-001-ref.html">
+<style type="text/css">
+@font-face {
+ font-family: ArabicTest;
+ src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
+}
+.test {
+ font: 120px/2 ArabicTest, sans-serif;
+}
+</style>
+</head>
+<body>
+ <p class="instructions">Test passes if the two lines are rendered identically,
+ with the superscript alef (&#x627;) directly above the raised hamza (&#x621;).</p>
+ <!-- The Arabic characters here are ARABIC HAMZA ABOVE and ARABIC LETTER
+ SUPERSCRIPT ALEF, and according to UTR53 should always be sorted
+ as <hamza,alef> for rendering regardless of underlying order. -->
+ <div class=test>a<span dir=rtl>&nbsp;&#x654;&#x670;</span>z</div>
+ <div class=test>a<span dir=rtl>&nbsp;&#x670;&#x654;</span>z</div>
+</body>
+</html>
diff --git a/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-002.html b/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-002.html
new file mode 100644
index 00000000000..ec252ef5ea9
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/shaping/shaping-arabic-diacritics-002.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>shaping: Arabic diacritics on NBSP</title>
+<meta name="assert" content="Shaping must work for diacritics rendered on NBSP as base">
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
+<link rel="help" href="https://www.unicode.org/versions/Unicode13.0.0/ch02.pdf">
+<link rel="help" href="https://www.unicode.org/reports/tr53/">
+<link rel="match" href="reference/shaping-arabic-diacritics-002-ref.html">
+<style type="text/css">
+@font-face {
+ font-family: ArabicTest;
+ src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
+}
+.test {
+ font: 120px/2 ArabicTest, sans-serif;
+}
+.test span {
+ padding: .1em .05em 0;
+ background: black;
+}
+</style>
+</head>
+<body>
+ <p class="instructions">Test passes if the Arabic diacritics are entirely hidden by the black boxes.</p>
+ <!-- The Arabic characters here are ARABIC HAMZA ABOVE and ARABIC LETTER
+ SUPERSCRIPT ALEF, and (using the NotoNaskhArabic font) they should both
+ be entirely within the (padded) width of the NBSP, if they are properly
+ positioned (regardless of their order). -->
+ <div class=test>a<span dir=rtl>&nbsp;&#x654;&#x670;</span>z</div>
+ <div class=test>a<span dir=rtl>&nbsp;&#x670;&#x654;</span>z</div>
+</body>
+</html>