summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-charset
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/css-charset
parentInitial commit. (diff)
downloadfirefox-upstream/124.0.1.tar.xz
firefox-upstream/124.0.1.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/css-charset')
-rw-r--r--layout/reftests/css-charset/pass.html7
-rw-r--r--layout/reftests/css-charset/reftest.list10
-rw-r--r--layout/reftests/css-charset/test-attribute.cssbin0 -> 44 bytes
-rw-r--r--layout/reftests/css-charset/test-attribute.html19
-rw-r--r--layout/reftests/css-charset/test-charset-leading-space.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-leading-space.html19
-rw-r--r--layout/reftests/css-charset/test-charset-quotes.cssbin0 -> 82 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-quotes.html19
-rw-r--r--layout/reftests/css-charset/test-charset-trailing-space.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-trailing-space.html19
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-be-bom.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-be-bom.html19
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-be-no-bom.cssbin0 -> 82 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html20
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-bom-be.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-bom-be.html19
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-bom-le.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-bom-le.html19
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-le-bom.cssbin0 -> 84 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-le-bom.html19
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-le-no-bom.cssbin0 -> 82 bytes
-rw-r--r--layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html20
22 files changed, 209 insertions, 0 deletions
diff --git a/layout/reftests/css-charset/pass.html b/layout/reftests/css-charset/pass.html
new file mode 100644
index 0000000000..31d07cfd58
--- /dev/null
+++ b/layout/reftests/css-charset/pass.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html>
+ <body style="color: green">
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/reftest.list b/layout/reftests/css-charset/reftest.list
new file mode 100644
index 0000000000..ef6505576a
--- /dev/null
+++ b/layout/reftests/css-charset/reftest.list
@@ -0,0 +1,10 @@
+== test-attribute.html pass.html
+== test-charset-quotes.html pass.html
+== test-charset-leading-space.html pass.html
+== test-charset-trailing-space.html pass.html
+== test-charset-utf-16-le-no-bom.html pass.html
+fails == test-charset-utf-16-le-bom.html pass.html
+== test-charset-utf-16-bom-le.html pass.html
+== test-charset-utf-16-be-no-bom.html pass.html
+fails == test-charset-utf-16-be-bom.html pass.html
+== test-charset-utf-16-bom-be.html pass.html
diff --git a/layout/reftests/css-charset/test-attribute.css b/layout/reftests/css-charset/test-attribute.css
new file mode 100644
index 0000000000..8fcd96f5d4
--- /dev/null
+++ b/layout/reftests/css-charset/test-attribute.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-attribute.html b/layout/reftests/css-charset/test-attribute.html
new file mode 100644
index 0000000000..8befd8f49a
--- /dev/null
+++ b/layout/reftests/css-charset/test-attribute.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: red; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="UTF-16BE"
+ href="test-attribute.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-leading-space.css b/layout/reftests/css-charset/test-charset-leading-space.css
new file mode 100644
index 0000000000..69b4324aaf
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-leading-space.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-leading-space.html b/layout/reftests/css-charset/test-charset-leading-space.html
new file mode 100644
index 0000000000..086c1be4f1
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-leading-space.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-leading-space.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-quotes.css b/layout/reftests/css-charset/test-charset-quotes.css
new file mode 100644
index 0000000000..67f9f21f45
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-quotes.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-quotes.html b/layout/reftests/css-charset/test-charset-quotes.html
new file mode 100644
index 0000000000..57e749cb30
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-quotes.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-quotes.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-trailing-space.css b/layout/reftests/css-charset/test-charset-trailing-space.css
new file mode 100644
index 0000000000..c1f9d451e2
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-trailing-space.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-trailing-space.html b/layout/reftests/css-charset/test-charset-trailing-space.html
new file mode 100644
index 0000000000..6090e294c0
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-trailing-space.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-trailing-space.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-bom.css b/layout/reftests/css-charset/test-charset-utf-16-be-bom.css
new file mode 100644
index 0000000000..a5d0914b49
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-be-bom.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-bom.html b/layout/reftests/css-charset/test-charset-utf-16-be-bom.html
new file mode 100644
index 0000000000..8947490e97
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-be-bom.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-be-bom.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css
new file mode 100644
index 0000000000..f877df030c
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html
new file mode 100644
index 0000000000..a617959c9f
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset, modified for CSS3</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Henri Sivonen" href="mailto:hsivonen@iki.fi" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-be-no-bom.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-be.css b/layout/reftests/css-charset/test-charset-utf-16-bom-be.css
new file mode 100644
index 0000000000..21e4206f72
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-bom-be.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-be.html b/layout/reftests/css-charset/test-charset-utf-16-bom-be.html
new file mode 100644
index 0000000000..b0c29cfd20
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-bom-be.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: red; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-bom-be.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-le.css b/layout/reftests/css-charset/test-charset-utf-16-bom-le.css
new file mode 100644
index 0000000000..ddf7fd00ae
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-bom-le.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-le.html b/layout/reftests/css-charset/test-charset-utf-16-bom-le.html
new file mode 100644
index 0000000000..fc5f5b9e01
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-bom-le.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: red; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-bom-le.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-bom.css b/layout/reftests/css-charset/test-charset-utf-16-le-bom.css
new file mode 100644
index 0000000000..3aab85e0b2
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-le-bom.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-bom.html b/layout/reftests/css-charset/test-charset-utf-16-le-bom.html
new file mode 100644
index 0000000000..1ceaffaf43
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-le-bom.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-le-bom.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+
diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css
new file mode 100644
index 0000000000..b2a1129c04
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css
Binary files differ
diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html
new file mode 100644
index 0000000000..d0c3875a29
--- /dev/null
+++ b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: @charset, modified for CSS3</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Henri Sivonen" href="mailto:hsivonen@iki.fi" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/>
+ <meta name="flags" content="" />
+ <style type="text/css">
+ body { color: green; }
+ </style>
+ <link rel="stylesheet" type="text/css" charset="us-ascii"
+ href="test-charset-utf-16-le-no-bom.css" />
+ </head>
+ <body>
+ This should be green
+ </body>
+</html>
+