summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html')
-rw-r--r--testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html b/testing/web-platform/tests/css/css-text/shaping/shaping-arabic-diacritics-002.html
new file mode 100644
index 0000000000..ec252ef5ea
--- /dev/null
+++ b/testing/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>