summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/i18n
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
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')
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/META.yml2
-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
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-001.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-002.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-003.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-004.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-005.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-006.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-007.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-008.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-009.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-010.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-011.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-012.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-013.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-014.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-015.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-016.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-017.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-018.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-019.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-020.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-021.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-022.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-023.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-024.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-025.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-026.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-027.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-028.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-001.pngbin0 -> 2633 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-002.pngbin0 -> 2625 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-003.pngbin0 -> 2625 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-004.pngbin0 -> 2575 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-005.pngbin0 -> 2579 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-006.pngbin0 -> 2583 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-007.pngbin0 -> 2522 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-008.pngbin0 -> 2104 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-011.pngbin0 -> 2540 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-012.pngbin0 -> 2483 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-013.pngbin0 -> 2493 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-014.pngbin0 -> 2487 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-015.pngbin0 -> 2499 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-016.pngbin0 -> 2628 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-017.pngbin0 -> 2531 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-018.pngbin0 -> 2586 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-019.pngbin0 -> 2557 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-020.pngbin0 -> 2631 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-021.pngbin0 -> 2567 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-024.pngbin0 -> 2615 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-025.pngbin0 -> 2541 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-026.pngbin0 -> 4993 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-027.pngbin0 -> 4919 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-028.pngbin0 -> 3185 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/same.pngbin0 -> 315 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/visuren/support/samenot.pngbin0 -> 659 bytes
193 files changed, 2134 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/i18n/META.yml b/testing/web-platform/tests/css/CSS2/i18n/META.yml
new file mode 100644
index 0000000000..9fa8c3b6c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/META.yml
@@ -0,0 +1,2 @@
+suggested_reviewers:
+ - r12a
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
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-001.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-001.xht
new file mode 100644
index 0000000000..5629e9a9f4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-001.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:default context, direction rtl, unicode-bidi embed</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=1' />
+<meta name="assert" content="In the default context, if direction:rtl and unicode-bidi:embed are applied to an inline element containing mixed direction text, the text in that element will be displayed correctly." />
+<style type='text/css'>
+.test span { direction: rtl; unicode-bidi: embed; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-005.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-002.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-002.xht
new file mode 100644
index 0000000000..5c14bc16a6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-002.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:default context, direction rtl, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=2' />
+<meta name="assert" content="In the default context, if direction:rtl alone is applied to an inline element containing mixed direction text, the different directional runs in that element will not be in the correct order." />
+<style type='text/css'>
+.test span { direction: rtl; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-001.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-003.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-003.xht
new file mode 100644
index 0000000000..199931f397
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-003.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:ltr context, direction rtl, unicode-bidi embed</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=3' />
+<meta name="assert" content="In a LTR context, if direction:rtl and unicode-bidi:embed are applied to an inline element containing mixed direction text, the text in that element will be displayed correctly." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { direction: rtl; unicode-bidi: embed; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-005.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-004.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-004.xht
new file mode 100644
index 0000000000..c6cf5be3b8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-004.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:ltr context, direction rtl, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=4' />
+<meta name="assert" content="In a LTR context, if direction:rtl alone is applied to an inline element containing mixed direction text, the different directional runs in that element will not be in the correct order." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { direction: rtl; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-001.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-005.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-005.xht
new file mode 100644
index 0000000000..6027755bfb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-005.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:rtl context, direction ltr, unicode-bidi embed</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=5' />
+<meta name="assert" content="In a RTL context, if direction:ltr and unicode-bidi:embed are applied to a LTR inline element containing mixed direction text, the text in that element will be displayed correctly." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { direction: ltr; unicode-bidi: embed; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-015.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-006.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-006.xht
new file mode 100644
index 0000000000..6ef2b77aeb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-006.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:rtl context, direction ltr, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=6' />
+<meta name="assert" content="In a RTL context, if direction:ltr alone is applied to a LTR inline element containing mixed direction text, the different directional runs in that element will not be in the correct order." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { direction: ltr; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-011.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-007.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-007.xht
new file mode 100644
index 0000000000..d7f00230f9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-007.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:direction of a ltr tspan</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=7' />
+<meta name="assert" content="In a RTL context, if direction:ltr and unicode-bidi:embed are applied to an inline element containing mixed direction text, the the inline element will interact with surrounding ltr text as a LTR directional run." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { direction: ltr; unicode-bidi: embed; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-016.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-008.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-008.xht
new file mode 100644
index 0000000000..3b5e7299fe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-008.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:direction of a rtl tspan</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=8' />
+<meta name="assert" content="In a LTR context, if direction:rtl and unicode-bidi:embed are applied to an inline element containing mixed direction text, the the inline element will interact with surrounding rtl text as a RTL directional run." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { direction: rtl; unicode-bidi: embed; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-017.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-009.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-009.xht
new file mode 100644
index 0000000000..0381746fa4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-009.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:on element, direction ltr, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=9' />
+<meta name="assert" content="direction:ltr alone on a block element will cause the text to be left-aligned, directional runs to be arranged LTR (but the words should look correct within each run), and punctuation should be treated as LTR." />
+<style type='text/css'>
+.test { direction: ltr; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">W3C نشاط التدويل i18n activity!</div>
+
+
+<p><img src="support/direction-unicode-bidi-018.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-010.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-010.xht
new file mode 100644
index 0000000000..0f94aefe74
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-010.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:on element, direction rtl, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=10' />
+<meta name="assert" content="direction:rtl alone on a block element will cause the text to be right-aligned, directional runs to be arranged RTL (but the words should look correct within each run), and punctuation should be treated as RTL." />
+<style type='text/css'>
+.test { direction: rtl; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">W3C نشاط التدويل i18n activity!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-019.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-011.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-011.xht
new file mode 100644
index 0000000000..6f663ad024
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-011.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:inherited, direction ltr, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=11' />
+<meta name="assert" content="direction:ltr on a container element will be inherited by an embedded block element." />
+<style type='text/css'>
+.test { direction: ltr; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div></div>
+
+
+<p><img src="support/direction-unicode-bidi-018.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-012.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-012.xht
new file mode 100644
index 0000000000..eb23f525ee
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-012.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:inherited, direction rtl, unicode-bidi none</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=12' />
+<meta name="assert" content="direction:rtl on a container element will be inherited by an embedded block element." />
+<style type='text/css'>
+.test { direction: rtl; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div></div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-019.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-013.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-013.xht
new file mode 100644
index 0000000000..dbe8cf3e61
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-013.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:default context, direction none, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=13' />
+<meta name="assert" content="In the default context, if unicode-bidi:bidi-override and no direction are applied to an inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from left to right." />
+<style type='text/css'>
+.test span { unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-002.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-014.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-014.xht
new file mode 100644
index 0000000000..972be2e098
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-014.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:default context, direction ltr, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=14' />
+<meta name="assert" content="In the default context, if direction:ltr and unicode-bidi:bidi-override are applied to an inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from left to right." />
+<style type='text/css'>
+.test span { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-003.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-015.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-015.xht
new file mode 100644
index 0000000000..2a5f615509
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-015.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:default context, direction rtl, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=15' />
+<meta name="assert" content="In the default context, if unicode-bidi:bidi-override and direction:rtl are applied to an inline element containing mixed direction text, the characters in that element will be displayed in reverse backing-store order from left to right." />
+<style type='text/css'>
+.test span { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-004.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-016.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-016.xht
new file mode 100644
index 0000000000..f91a7bdfa1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-016.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:ltr context, direction none, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=16' />
+<meta name="assert" content="In a LTR context, if unicode-bidi:bidi-override and no direction are applied to an inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from left to right." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-002.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-017.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-017.xht
new file mode 100644
index 0000000000..2a3117ea58
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-017.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:ltr context, direction ltr, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=17' />
+<meta name="assert" content="In a LTR context, if direction:ltr and unicode-bidi:bidi-override are applied to an inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from left to right." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-003.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-018.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-018.xht
new file mode 100644
index 0000000000..b573976e7d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:ltr context, direction rtl, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=18' />
+<meta name="assert" content="In a LTR context, if unicode-bidi:bidi-override and direction:rtl are applied to an inline element containing mixed direction text, the characters in that element will be displayed in reverse backing-store order from left to right." />
+<style type='text/css'>
+.test { direction: ltr; } .test span { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">i18n activity "<span>نشاط التدويل، W3C</span>"!</div>
+
+
+<p><img src="support/direction-unicode-bidi-004.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-019.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-019.xht
new file mode 100644
index 0000000000..b4548355db
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-019.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:rtl context, direction none, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=19' />
+<meta name="assert" content="In a RTL context, if unicode-bidi:bidi-override and no direction are applied to a LTR inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from right to left." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-012.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-020.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-020.xht
new file mode 100644
index 0000000000..3c82626a6b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-020.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:rtl context, direction ltr, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=20' />
+<meta name="assert" content="In a RTL context, if direction:ltr and unicode-bidi:bidi-override are applied to a LTR inline element containing mixed direction text, the characters in that element will be displayed in reverse backing-store order from right to left." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-013.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-021.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-021.xht
new file mode 100644
index 0000000000..2c77d7696e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-021.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:rtl context, direction rtl, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=21' />
+<meta name="assert" content="In a RTL context, if unicode-bidi:bidi-override and direction:rtl are applied to a LTR inline element containing mixed direction text, the characters in that element will be displayed in backing-store order from right to left." />
+<style type='text/css'>
+.test { direction: rtl; } .test span { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">نشاط التدويل "<span>i18n activity, اختبار</span>"!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-014.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-022.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-022.xht
new file mode 100644
index 0000000000..9b3b0d1b5b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-022.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:on element, direction ltr, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=22' />
+<meta name="assert" content="direction:ltr and unicode-bidi:bidi-override on a block element will cause the text to be left-aligned, and all text to be displayed in backing-store order from left to right." />
+<style type='text/css'>
+.test { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">W3C نشاط التدويل i18n activity!</div>
+
+
+<p><img src="support/direction-unicode-bidi-020.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-023.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-023.xht
new file mode 100644
index 0000000000..9ec8f76e8b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-023.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:on element, direction rtl, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=23' />
+<meta name="assert" content="direction:rtl and unicode-bidi:bidi-override on a block element will cause the text to be right-aligned, and all text to be displayed in backing-store order from right to left." />
+<style type='text/css'>
+.test { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test">W3C نشاط التدويل i18n activity!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-021.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-024.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-024.xht
new file mode 100644
index 0000000000..58331645bc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-024.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:inherited, direction ltr, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=24' />
+<meta name="assert" content="When direction:ltr and unicode-bidi:bidi-override is set on a block element, the override will not be inherited by a child block element, but the direction will." />
+<style type='text/css'>
+.test { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div></div>
+
+
+<p><img src="support/direction-unicode-bidi-024.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-025.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-025.xht
new file mode 100644
index 0000000000..f32220d979
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-025.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:inherited, direction rtl, unicode-bidi override</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=25' />
+<meta name="assert" content="When direction:rtl and unicode-bidi:bidi-override is set on a block element, the override will not be inherited by a child block element, but the direction will." />
+<style type='text/css'>
+.test { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div></div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-025.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-026.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-026.xht
new file mode 100644
index 0000000000..bf8dc1b767
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-026.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:right to left block</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=26' />
+<meta name="assert" content="When direction:ltr and unicode-bidi:bidi-override is set on a block element containing block and inline elements, only the direction of the inline text will be overridden." />
+<style type='text/css'>
+.test { direction: ltr; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div>W3C نشاط التدويل i18n activity!</div>
+
+
+<p><img src="support/direction-unicode-bidi-026.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-027.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-027.xht
new file mode 100644
index 0000000000..a3c228515a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-027.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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:left to right block</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=27' />
+<meta name="assert" content="When direction:rtl and unicode-bidi:bidi-override is set on a block element containing block and inline elements, only the direction of the inline text will be overridden." />
+<style type='text/css'>
+.test { direction: rtl; unicode-bidi: bidi-override; }
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div>W3C نشاط التدويل i18n activity!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-027.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-028.xht b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-028.xht
new file mode 100644
index 0000000000..3f3a4b83e5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/direction-unicode-bidi-028.xht
@@ -0,0 +1,31 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test:inner block converted to inline</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<link rel='help' href='http://www.w3.org/TR/CSS21/visuren.html#direction' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-direction-unicode-bidi/generate?test=28' />
+<meta name="assert" content="When direction:rtl and unicode-bidi:bidi-override is set on a block element containing block and inline elements, and CSS is used to change the block element to an inline element, the direction of all the text will be overridden." />
+<style type='text/css'>
+.test { direction: rtl; unicode-bidi: bidi-override; }
+.test div { display: inline; unicode-bidi: normal; } /* default HTML stylesheet sets unicode-bidi */
+
+/* the CSS below is not part of the test */
+.test { font-size: 28px; font-family: serif; }
+img { margin-left: 14px; margin-right: 10px; }
+</style>
+</head>
+<body>
+<div dir='ltr'>
+<p class="instructions"><span class="instructionsymbol"><img src="support/same.png" alt="same" /></span> Test passes if characters are in the same order.</p></div>
+
+
+
+<div class="test"><div>W3C نشاط التدويل i18n activity!</div>W3C نشاط التدويل i18n activity!</div>
+
+
+<p style="text-align:right"><img src="support/direction-unicode-bidi-028.png" alt="reference graphic" /></p><div dir='ltr'>
+</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-001.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-001.png
new file mode 100644
index 0000000000..f28069ca2f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-001.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-002.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-002.png
new file mode 100644
index 0000000000..fe89596420
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-002.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-003.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-003.png
new file mode 100644
index 0000000000..fe89596420
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-003.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-004.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-004.png
new file mode 100644
index 0000000000..3f04cf5016
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-004.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-005.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-005.png
new file mode 100644
index 0000000000..c38f120bf8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-005.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-006.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-006.png
new file mode 100644
index 0000000000..b1c300fa65
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-006.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-007.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-007.png
new file mode 100644
index 0000000000..0943b9ab88
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-007.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-008.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-008.png
new file mode 100644
index 0000000000..bad4e97b07
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-008.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-011.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-011.png
new file mode 100644
index 0000000000..eb65b37250
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-011.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-012.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-012.png
new file mode 100644
index 0000000000..4f9dc17d25
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-012.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-013.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-013.png
new file mode 100644
index 0000000000..8fa3ba8801
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-013.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-014.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-014.png
new file mode 100644
index 0000000000..3e43bb0764
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-014.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-015.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-015.png
new file mode 100644
index 0000000000..79d13182b9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-015.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-016.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-016.png
new file mode 100644
index 0000000000..be28d6605a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-016.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-017.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-017.png
new file mode 100644
index 0000000000..b6c0bc65bc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-017.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-018.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-018.png
new file mode 100644
index 0000000000..57e0ad7d5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-018.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-019.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-019.png
new file mode 100644
index 0000000000..187030d6bd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-019.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-020.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-020.png
new file mode 100644
index 0000000000..1b9cd39155
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-020.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-021.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-021.png
new file mode 100644
index 0000000000..c1c81122ef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-021.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-024.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-024.png
new file mode 100644
index 0000000000..2a358b0229
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-024.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-025.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-025.png
new file mode 100644
index 0000000000..31ce920a6d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-025.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-026.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-026.png
new file mode 100644
index 0000000000..0073bfa65c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-026.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-027.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-027.png
new file mode 100644
index 0000000000..09f4fcd116
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-027.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-028.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-028.png
new file mode 100644
index 0000000000..51d452c6a5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/direction-unicode-bidi-028.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/same.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/same.png
new file mode 100644
index 0000000000..796789c3ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/same.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/i18n/visuren/support/samenot.png b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/samenot.png
new file mode 100644
index 0000000000..7c4120bd48
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/visuren/support/samenot.png
Binary files differ