summaryrefslogtreecommitdiffstats
path: root/layout/reftests/unicode
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /layout/reftests/unicode
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/unicode')
-rw-r--r--layout/reftests/unicode/langattribute-ref.html26
-rw-r--r--layout/reftests/unicode/langattribute.html26
-rw-r--r--layout/reftests/unicode/reftest.list7
-rw-r--r--layout/reftests/unicode/unicode-attribute-selector.html21
-rw-r--r--layout/reftests/unicode/unicode-element-selector.html16
-rw-r--r--layout/reftests/unicode/unicode-lang.html17
-rw-r--r--layout/reftests/unicode/unicode-media-query-media-type.html15
-rw-r--r--layout/reftests/unicode/unicode-media-query-query.html13
-rw-r--r--layout/reftests/unicode/unicode-pseudo-selector.html16
-rw-r--r--layout/reftests/unicode/unicode-ref-print.html10
-rw-r--r--layout/reftests/unicode/unicode-ref.html15
11 files changed, 182 insertions, 0 deletions
diff --git a/layout/reftests/unicode/langattribute-ref.html b/layout/reftests/unicode/langattribute-ref.html
new file mode 100644
index 0000000000..d3908825a6
--- /dev/null
+++ b/layout/reftests/unicode/langattribute-ref.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="dk">
+<head>
+ <title>testing lang attribute</title>
+ <style>
+ div[lang="fr"] {
+ color: green;
+ }
+ div[lang="de"] > input {
+ color: blue;
+ }
+ div:not([lang]) {
+ color: yellow;
+ }
+ </style>
+</head>
+<body>
+<div lang="fr">fr language</div>
+<div lang="de">
+ <input value="de language">
+</div>
+<div>
+ dk language
+</div>
+</body>
+</html>
diff --git a/layout/reftests/unicode/langattribute.html b/layout/reftests/unicode/langattribute.html
new file mode 100644
index 0000000000..9630eb86ad
--- /dev/null
+++ b/layout/reftests/unicode/langattribute.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="dk">
+<head>
+ <title>testing lang attribute</title>
+ <style>
+ div:lang(fr) {
+ color: green;
+ }
+ input:lang(de) {
+ color: blue;
+ }
+ div:lang(dk) {
+ color: yellow;
+ }
+ </style>
+</head>
+<body>
+<div lang="fr">fr language</div>
+<div lang="de">
+ <input value="de language">
+</div>
+<div>
+ dk language
+</div>
+</body>
+</html>
diff --git a/layout/reftests/unicode/reftest.list b/layout/reftests/unicode/reftest.list
new file mode 100644
index 0000000000..45a98b1c85
--- /dev/null
+++ b/layout/reftests/unicode/reftest.list
@@ -0,0 +1,7 @@
+== unicode-attribute-selector.html unicode-ref.html
+== unicode-element-selector.html unicode-ref.html
+== unicode-lang.html unicode-ref.html
+== unicode-media-query-media-type.html unicode-ref-print.html
+== unicode-media-query-query.html unicode-ref-print.html
+== unicode-pseudo-selector.html unicode-ref.html
+== langattribute.html langattribute-ref.html
diff --git a/layout/reftests/unicode/unicode-attribute-selector.html b/layout/reftests/unicode/unicode-attribute-selector.html
new file mode 100644
index 0000000000..8d2eab9e42
--- /dev/null
+++ b/layout/reftests/unicode/unicode-attribute-selector.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - attribute selectors</title>
+ <style>
+ div[dİr] {color: red;}
+ div[dİr="ltr"] {text-indent: 30px;}
+ input[dİsabled] {display: none;}
+ /* input[dİsabled="disabled"] {display: inline;} */
+ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */
+ input { -moz-appearance: none; }
+ </style>
+</head>
+
+<body>
+ <div dir='ltr'><p lang="hi">स्टार</p></div>
+ <input disabled>
+ <input dİsabled="DİSABLED">
+ <input dİsabled="disabled">
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-element-selector.html b/layout/reftests/unicode/unicode-element-selector.html
new file mode 100644
index 0000000000..23d0fca513
--- /dev/null
+++ b/layout/reftests/unicode/unicode-element-selector.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - element selectors</title>
+ <style>
+ dİv {color: red}
+ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */
+ input { -moz-appearance: none; }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+ <input disabled>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-lang.html b/layout/reftests/unicode/unicode-lang.html
new file mode 100644
index 0000000000..15a9d88486
--- /dev/null
+++ b/layout/reftests/unicode/unicode-lang.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - language selector</title>
+ <style>
+ p:lang(hİ) {color: red}
+ /* p[lang="hİ"] {text-indent:30px} Disabled until Bug 492431 is fixed */
+ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */
+ input { -moz-appearance: none; }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+ <input disabled>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-media-query-media-type.html b/layout/reftests/unicode/unicode-media-query-media-type.html
new file mode 100644
index 0000000000..679112cbf5
--- /dev/null
+++ b/layout/reftests/unicode/unicode-media-query-media-type.html
@@ -0,0 +1,15 @@
+<html class="reftest-paged">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - media query - media type selector</title>
+ <style>
+ @media prİnt {
+ p { color: red }
+ }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-media-query-query.html b/layout/reftests/unicode/unicode-media-query-query.html
new file mode 100644
index 0000000000..640364475d
--- /dev/null
+++ b/layout/reftests/unicode/unicode-media-query-query.html
@@ -0,0 +1,13 @@
+<html class="reftest-paged">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - media query - media query text</title>
+ <style>
+ @media print and (mİn-wİdth: 5in) { p {color: red; } }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-pseudo-selector.html b/layout/reftests/unicode/unicode-pseudo-selector.html
new file mode 100644
index 0000000000..dad2217617
--- /dev/null
+++ b/layout/reftests/unicode/unicode-pseudo-selector.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - pseudo element selectors</title>
+ <style>
+ p:fİrst-letter {color: red}
+ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */
+ input { -moz-appearance: none; }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+ <input disabled>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-ref-print.html b/layout/reftests/unicode/unicode-ref-print.html
new file mode 100644
index 0000000000..d07c30de04
--- /dev/null
+++ b/layout/reftests/unicode/unicode-ref-print.html
@@ -0,0 +1,10 @@
+<html class="reftest-paged">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - media query - reference</title>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+</body>
+</html>
diff --git a/layout/reftests/unicode/unicode-ref.html b/layout/reftests/unicode/unicode-ref.html
new file mode 100644
index 0000000000..b4e8fb319b
--- /dev/null
+++ b/layout/reftests/unicode/unicode-ref.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Unicode tests - reference rending</title>
+ <style>
+ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */
+ input { -moz-appearance: none; }
+ </style>
+</head>
+
+<body>
+ <div><p lang="hi">स्टार</p></div>
+ <input disabled>
+</body>
+</html>