summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/i18n/syndata
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 /testing/web-platform/tests/css/CSS2/i18n/syndata
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 'testing/web-platform/tests/css/CSS2/i18n/syndata')
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/.htaccess87
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/.htaccess42
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-green.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-lime.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-maroon.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-navy.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-red.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-white.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-gg-rr.pngbin0 -> 224 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-green.pngbin0 -> 218 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/a-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/b-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css7
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css7
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8uc.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/bordered-rectangle.pngbin0 -> 368 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/c-red.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/cat.pngbin0 -> 1883 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset-unknown.css7
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-beforespaces.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-blankline.css14
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-endspaces.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-linebreak.css14
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-midspaces.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-nocolon.css14
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-singlequotes.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/diamond.pngbin0 -> 188 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/equal.pngbin0 -> 520 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css13
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css7
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/illegalcharset.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-red.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css12
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/notequal.pngbin0 -> 887 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/ring.pngbin0 -> 715 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50%.pngbin0 -> 691 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50px.pngbin0 -> 671 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-100px.pngbin0 -> 760 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-50px.pngbin0 -> 757 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-purple.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-teal.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-white.pngbin0 -> 78 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-green.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-red.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-blue.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-green.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-lime.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-orange.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-red.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-white.pngbin0 -> 85 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-yellow.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-bl.pngbin0 -> 1368 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-br.pngbin0 -> 1045 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-inner-half-size.pngbin0 -> 180 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-outer.pngbin0 -> 2412 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tl.pngbin0 -> 1025 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tr.pngbin0 -> 1235 bytes
138 files changed, 1291 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/.htaccess b/testing/web-platform/tests/css/CSS2/i18n/syndata/.htaccess
new file mode 100644
index 0000000000..453f100a5b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/.htaccess
@@ -0,0 +1,87 @@
+<Files ~ '^character-encoding-001\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-002\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-003\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-004\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-005\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-006\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-007\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-008\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-009\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-010\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-011\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-15 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-012\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-013\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-014\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-15 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-015\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-016\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-017\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-15 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-018\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-019\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-020\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-021\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-022\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-023\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-024\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-025\.(xht|xhtml|xml|html|htm)$'>
+AddCharset utf-8 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-026\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-027\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-028\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
+<Files ~ '^character-encoding-029\.(xht|xhtml|xml|html|htm)$'>
+AddCharset iso-8859-1 .xht .xhtml .xml .html .htm
+</Files>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht
new file mode 100644
index 0000000000..33794092c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, css http iso1</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=18' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in HTTP." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/http1.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-1 using only the HTTP header.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-001.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht
new file mode 100644
index 0000000000..eb946403a9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, css http iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=19' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in HTTP." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/http15.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ÜÀÚ">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-15 using only the HTTP header.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-002.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht
new file mode 100644
index 0000000000..223f6f4077
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso1, css http utf8</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=20' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in HTTP." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/http8.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS file encoding is established as UTF-8 using only the HTTP header.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-003.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht
new file mode 100644
index 0000000000..5c3e75894d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, css @charset iso1</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=21' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in an @charset rule." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset1.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-1 using only an @charset rule.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-004.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht
new file mode 100644
index 0000000000..6d9afbd6c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, css @charset iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=22' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in an @charset rule." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ÜÀÚ">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-15 using only an @charset rule.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-005.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht
new file mode 100644
index 0000000000..e353479c84
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso1, css @charset utf8</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=23' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in an @charset rule." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset8.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS file encoding is established as UTF-8 using only an @charset rule.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-006.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht
new file mode 100644
index 0000000000..02a9442e72
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, link charset iso1</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=24' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" charset="iso-8859-1" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-1 using only a charset attribute on the HTML link.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-007.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht
new file mode 100644
index 0000000000..934fa7548d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8, link charset iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=25' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" charset="iso-8859-15" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ÜÀÚ">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file encoding is established as ISO 8859-15 using only a charset attribute on the HTML link.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-008.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht
new file mode 100644
index 0000000000..67919fba7f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso-8859-1, link charset utf8</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=26' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" charset="utf-8" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS file encoding is established as UTF-8 using only a charset attribute on the HTML link.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-009.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht
new file mode 100644
index 0000000000..9ba07a5a26
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso1</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=27' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS file has no encoding set or BOM.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-010.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht
new file mode 100644
index 0000000000..f563929a40
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-15'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /><title>CSS Test: html iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=28' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-15. The CSS file has no encoding set or BOM.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht.headers
new file mode 100644
index 0000000000..2fcc807eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-011.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-15
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht
new file mode 100644
index 0000000000..e6d3251100
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf8</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=29' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/none.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS file has no encoding set or BOM.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-012.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht
new file mode 100644
index 0000000000..a9ac0bd2d6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso-8859-1, css bom</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=30' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent uses a UTF-8 signature without an @charset at the beginning of a css stylesheet to indicate that the encoding is UTF-8." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS file encoding is established as utf-8 using only the presence of a UTF-8 signature.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-013.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht
new file mode 100644
index 0000000000..2daebf3fe1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-15'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /><title>CSS Test: html iso-8859-15, css bom</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=31' />
+<meta name='flags' content='http' />
+<meta name="assert" content="The user agent uses a UTF-8 signature without an @charset at the beginning of a css stylesheet to indicate that the encoding is UTF-8." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-15. The CSS file encoding is established as utf-8 using only the presence of a UTF-8 signature.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht.headers
new file mode 100644
index 0000000000..2fcc807eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-014.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-15
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht
new file mode 100644
index 0000000000..08873c8edd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso-8859-1, css bom and @charset utf8 (in lowercase)</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=32' />
+<meta name='flags' content='http' />
+<meta name="assert" content="When a stylesheet has a BOM and an @charset declaration that is for the right Unicode encoding, the stylesheet works." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom-charsetutf8.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span style="background-color: red; color: red;"><span class="ýäè">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be UTF-8.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-015.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht
new file mode 100644
index 0000000000..9a10ec6ea3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso-8859-1, css bom and @charset utf8 (in uppercase)</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=33' />
+<meta name='flags' content='http' />
+<meta name="assert" content="When a stylesheet has a BOM and an @charset declaration that is for the right Unicode encoding, the stylesheet works." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom-charsetutf8uc.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be UTF-8.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-016.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht
new file mode 100644
index 0000000000..913d1ead06
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-15'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /><title>CSS Test: html iso-8859-15, css bom and @charset iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=34' />
+<meta name='flags' content='http' />
+<meta name="assert" content="When a stylesheet has a BOM, honor it." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom-charset15.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span style="background-color: #00FF00; color: #00FF00;"><span class="hello">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be ISO 8859-1. The CSS 2.1 spec says that the whole stylesheet should be abandoned in that case.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht.headers
new file mode 100644
index 0000000000..2fcc807eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-15
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht
new file mode 100644
index 0000000000..ea4c560713
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: html utf-8, css @charset unknown</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=35' />
+<meta name='flags' content='http' />
+<meta name="assert" content="When a stylesheet has a @charset declaration with an unknown value, the declaration should be ignored." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+.hello { background-color: #FF0000; color: #FF0000; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset-unknown.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span class="hello">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS starts a @charset rule for an encoding that is not in the IANA list.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-018.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht
new file mode 100644
index 0000000000..d3df459e14
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: no semicolon at end of charset rule</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=36' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration is missing a final semicolon, the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-nocolon.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-019.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht
new file mode 100644
index 0000000000..0af3085f46
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: extra spaces after @charset</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=37' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration has more than one space after 'charset', the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-midspaces.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-020.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht
new file mode 100644
index 0000000000..f3daaa60ee
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: extra spaces before colon in charset rule</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=38' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration has spaces just before the colon, the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-endspaces.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-021.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht
new file mode 100644
index 0000000000..cc44e271ce
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: linebreak in middle of charset rule</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=39' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration has a line break in the middle, the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-linebreak.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-022.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht
new file mode 100644
index 0000000000..cf6c454eb5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: single quotes around charset name</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=40' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration value has single, rather than double, quotes around it, the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-singlequotes.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-023.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht
new file mode 100644
index 0000000000..75f24ea154
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: blank line before @charset</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=41' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration is not on the first line of the file, the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-blankline.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-024.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht
new file mode 100644
index 0000000000..2232f6f758
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='utf-8'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS Test: blank spaces before @charset</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=42' />
+<meta name='flags' content='http' />
+<meta name="assert" content="If a @charset declaration does not start at the beginning of the first line of the file (when there is no BOM), the encoding declaration will not be recognised." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/charset15-beforespaces.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset rule. </p>
+
+
+<div class="test"><span style="background-color: #0000FF; color: #0000FF;"><span class="ÜÀÚ">text</span></span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as UTF-8. The CSS stylesheet is in ISO 8859-15. For the test to be successful, the stylesheet has to be read as ISO 8859-15. The @charset rule is not correctly formed, so should be ignored, but the stylesheet should still be used.</p><p class='notes'>If the box is blue, the stylesheet hasn't been read at all.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht.headers
new file mode 100644
index 0000000000..686ec5a33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-025.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht
new file mode 100644
index 0000000000..5ffaad2798
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: http vs. @charset</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=43' />
+<meta name='flags' content='http' />
+<meta name="assert" content="An HTTP encoding declaration for a stylesheet takes precedence over an @charset declaration." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/http1-charset8.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the HTTP and @charset declarations.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS contains an @charset rule that says the file is UTF-8, but the HTTP header says ISO 8859-1.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-026.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht
new file mode 100644
index 0000000000..14ca5b887c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: http vs. charset link</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=44' />
+<meta name='flags' content='http' />
+<meta name="assert" content="An HTTP encoding declaration for a stylesheet takes precedence over a charset attribute link declaration." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" charset="utf-8" type="text/css" href="support/http1.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the HTTP and charset link declarations.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The HTML link contains a charset attribute that says the file is UTF-8, but the HTTP header for the stylesheet says ISO 8859-1.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-027.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht
new file mode 100644
index 0000000000..cf7c0b9be7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: http vs. bom</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=45' />
+<meta name='flags' content='http' />
+<meta name="assert" content="A UTF-8 signature for a stylesheet takes precedence over an HTTP encoding declaration." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/http1-bom.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the HTTP declarations and BOM function.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS contains a UTF-8 signature at the beginning, but the HTTP header says ISO 8859-1.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-028.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht
new file mode 100644
index 0000000000..1f76c4b088
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-1'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: @charset vs. link charset</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=46' />
+<meta name='flags' content='http' />
+<meta name="assert" content="An HTTP encoding declaration for a stylesheet takes precedence over a UTF-8 signature." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" charset="utf-8" type="text/css" href="support/charset1.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p><p class='instructionNote'>This test is only valid if the user agent recognises the @charset and charset attribute declarations.</p>
+
+
+<div class="test"><span class="ýäè">text</span></div>
+
+
+<!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS contains an @charset rule that says the file is ISO 8859-1, but the HTML link charset attribute says UTF-8.</p-->
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht.headers
new file mode 100644
index 0000000000..f935dc4b5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-029.xht.headers
@@ -0,0 +1 @@
+Content-Type: application/xhtml+xml;charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/.htaccess b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/.htaccess
new file mode 100644
index 0000000000..d8e9dc2372
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/.htaccess
@@ -0,0 +1,42 @@
+<Files "http1.css">
+AddCharset iso-8859-1 .css
+</Files>
+<Files "http15.css">
+AddCharset iso-8859-15 .css
+</Files>
+<Files "http8.css">
+AddCharset utf-8 .css
+</Files>
+<Files "charset8.css">
+RemoveCharset .css
+</Files>
+<Files "charset1.css">
+RemoveCharset .css
+</Files>
+<Files "charset15.css">
+RemoveCharset .css
+</Files>
+<Files "none.css">
+RemoveCharset .css
+</Files>
+<Files "bom.css">
+RemoveCharset .css
+</Files>
+<Files "bom-charset1.css">
+RemoveCharset .css
+</Files>
+<Files "bom-charset15.css">
+RemoveCharset .css
+</Files>
+<Files "illegalcharset.css">
+RemoveCharset .css
+</Files>
+<Files "http8-charset1.css">
+AddCharset utf-8 .css
+</Files>
+<Files "http1-charset8.css">
+AddCharset iso-8859-1 .css
+</Files>
+<Files "http1-bom.css">
+AddCharset iso-8859-1 .css
+</Files>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-green.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-green.png
new file mode 100644
index 0000000000..b98ca0ba0a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-lime.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-lime.png
new file mode 100644
index 0000000000..cb397fb090
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-maroon.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-maroon.png
new file mode 100644
index 0000000000..3f86b07219
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-maroon.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-navy.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-navy.png
new file mode 100644
index 0000000000..9b9a03955b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-navy.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-red.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-red.png
new file mode 100644
index 0000000000..6bd73ac101
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-white.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-white.png
new file mode 100644
index 0000000000..dd43faec54
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/1x1-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-gg-rr.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-gg-rr.png
new file mode 100644
index 0000000000..84f5b2a4f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-gg-rr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-green.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-green.png
new file mode 100644
index 0000000000..b3c8cf3eb4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/60x60-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/a-green.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/a-green.css
new file mode 100644
index 0000000000..b0dbb071d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/a-green.css
@@ -0,0 +1 @@
+.a { color: green; }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/b-green.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/b-green.css
new file mode 100644
index 0000000000..a0473f5ca2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/b-green.css
@@ -0,0 +1 @@
+.b { color: green; } \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css
new file mode 100644
index 0000000000..2c67cd56e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css
@@ -0,0 +1,7 @@
+@charset "iso-8859-1";
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: white;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset1.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css
new file mode 100644
index 0000000000..40c3eeb855
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css
@@ -0,0 +1,7 @@
+@charset "iso-8859-15";
+.hello {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charset15.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8.css
new file mode 100644
index 0000000000..0468871e30
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8.css
@@ -0,0 +1,13 @@
+@charset "utf-8";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8uc.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8uc.css
new file mode 100644
index 0000000000..62a558a4f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom-charsetutf8uc.css
@@ -0,0 +1,13 @@
+@charset "UTF-8";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css
new file mode 100644
index 0000000000..432afff0e6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bom.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bordered-rectangle.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bordered-rectangle.png
new file mode 100644
index 0000000000..1da0ce2ec3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/bordered-rectangle.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/c-red.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/c-red.css
new file mode 100644
index 0000000000..d4ba5c64e9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/c-red.css
@@ -0,0 +1 @@
+.c { color: red; } \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/cat.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/cat.png
new file mode 100644
index 0000000000..85dd732481
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/cat.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset-unknown.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset-unknown.css
new file mode 100644
index 0000000000..dbc2ae45e3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset-unknown.css
@@ -0,0 +1,7 @@
+@charset "xxxunknownEncodingxxx";
+.hello {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css
new file mode 100644
index 0000000000..5175f4b2c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css
@@ -0,0 +1,13 @@
+@charset "iso-8859-1";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset1.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-beforespaces.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-beforespaces.css
new file mode 100644
index 0000000000..a9e81f9a66
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-beforespaces.css
@@ -0,0 +1,13 @@
+ @charset "iso-8859-15";
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-blankline.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-blankline.css
new file mode 100644
index 0000000000..b0131faac4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-blankline.css
@@ -0,0 +1,14 @@
+
+@charset "iso-8859-15";
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-endspaces.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-endspaces.css
new file mode 100644
index 0000000000..db3b2ce237
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-endspaces.css
@@ -0,0 +1,13 @@
+@charset "iso-8859-15" ;
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-linebreak.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-linebreak.css
new file mode 100644
index 0000000000..3a84065358
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-linebreak.css
@@ -0,0 +1,14 @@
+@charset
+"iso-8859-15";
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-midspaces.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-midspaces.css
new file mode 100644
index 0000000000..7482eddfef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-midspaces.css
@@ -0,0 +1,13 @@
+@charset "iso-8859-15";
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-nocolon.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-nocolon.css
new file mode 100644
index 0000000000..690a46995a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-nocolon.css
@@ -0,0 +1,14 @@
+@charset "iso-8859-15"
+dummy { font-family: serif; } /* provides a colon to make the important stuff work */
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-singlequotes.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-singlequotes.css
new file mode 100644
index 0000000000..57320c38e2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15-singlequotes.css
@@ -0,0 +1,13 @@
+@charset 'iso-8859-15';
+span {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: #FF0000;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css
new file mode 100644
index 0000000000..f004fc220f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css
@@ -0,0 +1,13 @@
+@charset "iso-8859-15";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset15.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css
new file mode 100644
index 0000000000..ab09948751
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css
@@ -0,0 +1,13 @@
+@charset "utf-8";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/charset8.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/diamond.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/diamond.png
new file mode 100644
index 0000000000..51112efc7c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/diamond.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/equal.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/equal.png
new file mode 100644
index 0000000000..071443046b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/equal.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css
new file mode 100644
index 0000000000..218a5b747d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css.headers
new file mode 100644
index 0000000000..8a52752d9b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-bom.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css
new file mode 100644
index 0000000000..ab09948751
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css
@@ -0,0 +1,13 @@
+@charset "utf-8";
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css.headers
new file mode 100644
index 0000000000..8a52752d9b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1-charset8.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css
new file mode 100644
index 0000000000..a9dc99667a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css.headers
new file mode 100644
index 0000000000..8a52752d9b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http1.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=iso-8859-1
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css
new file mode 100644
index 0000000000..a9dc99667a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css.headers
new file mode 100644
index 0000000000..2addb8d141
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http15.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=iso-8859-15
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css
new file mode 100644
index 0000000000..2c67cd56e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css
@@ -0,0 +1,7 @@
+@charset "iso-8859-1";
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: white;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css.headers
new file mode 100644
index 0000000000..e13897f157
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8-charset1.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css
new file mode 100644
index 0000000000..a9dc99667a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css.headers
new file mode 100644
index 0000000000..e13897f157
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/http8.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css; charset=utf-8
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/illegalcharset.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/illegalcharset.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/illegalcharset.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-green.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-green.css
new file mode 100644
index 0000000000..537104e663
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-green.css
@@ -0,0 +1 @@
+.import { color: green; }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-red.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-red.css
new file mode 100644
index 0000000000..9945ef4711
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/import-red.css
@@ -0,0 +1 @@
+.import { color: red; }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css
new file mode 100644
index 0000000000..a9dc99667a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css
@@ -0,0 +1,12 @@
+span {
+ background-color: #FF0000;
+ font-weight: bold;
+ color: red;
+ font-family: Arial, Helvetica, sans-serif;
+ }
+.ýäè {
+ background-color: #00FF00;
+ font-weight: bold;
+ color: #00FF00;
+ font-family: Arial, Helvetica, sans-serif;
+ }
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css.headers b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css.headers
new file mode 100644
index 0000000000..74e07a14e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/none.css.headers
@@ -0,0 +1 @@
+Content-Type: text/css
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/notequal.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/notequal.png
new file mode 100644
index 0000000000..0824a495b4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/notequal.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ring.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ring.png
new file mode 100644
index 0000000000..061bb94eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ring.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50%.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50%.png
new file mode 100644
index 0000000000..cf2eea6b43
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50%.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50px.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50px.png
new file mode 100644
index 0000000000..9f46583665
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-h-50px.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-100px.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-100px.png
new file mode 100644
index 0000000000..a837eca222
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-100px.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-50px.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-50px.png
new file mode 100644
index 0000000000..8414102802
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/ruler-v-50px.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-purple.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-purple.png
new file mode 100644
index 0000000000..0f522d7872
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-purple.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-teal.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-teal.png
new file mode 100644
index 0000000000..e567f51b91
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-teal.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-white.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-white.png
new file mode 100644
index 0000000000..5853cbb238
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/square-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-green.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-green.png
new file mode 100644
index 0000000000..1caf25c992
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-red.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-red.png
new file mode 100644
index 0000000000..0aa79b0c86
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/support/swatch-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-blue.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-blue.png
new file mode 100644
index 0000000000..bf2759634d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-blue.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-green.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-green.png
new file mode 100644
index 0000000000..0aa79b0c86
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-lime.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-lime.png
new file mode 100644
index 0000000000..55fd7fdaed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-orange.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-orange.png
new file mode 100644
index 0000000000..d3cd498b52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-orange.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-red.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-red.png
new file mode 100644
index 0000000000..1caf25c992
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-white.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-white.png
new file mode 100644
index 0000000000..1a7d4323d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-yellow.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-yellow.png
new file mode 100644
index 0000000000..1591aa0e2e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/swatch-yellow.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-bl.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-bl.png
new file mode 100644
index 0000000000..904e24e996
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-bl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-br.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-br.png
new file mode 100644
index 0000000000..f413ff5c1a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-br.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-inner-half-size.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-inner-half-size.png
new file mode 100644
index 0000000000..e473bf80ef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-inner-half-size.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-outer.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-outer.png
new file mode 100644
index 0000000000..82eeace7fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-outer.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tl.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tl.png
new file mode 100644
index 0000000000..f6ac0ef7e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tr.png b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tr.png
new file mode 100644
index 0000000000..59843ae54b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/support/test-tr.png
Binary files differ