summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/selectors
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/selectors
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/selectors')
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/.htaccess4
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/active-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/active-selector-002.xht48
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-selector-002.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002-ref.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002.xht38
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-003.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-004.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-005.html21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-006.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001-ref.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001-ref.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-001.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-002.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-003.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-004.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-005.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-006.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-001-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-002-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-002.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-003-ref.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/child-selector-003.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-003.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-005.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-006.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-007.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-008.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-009.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-010.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-011.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-012-ref.html20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/class-selector-012.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/combinator-001.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/combinator-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/combinator-003.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/combinator-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-001.xht44
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-002.xht44
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-003.xht46
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-004.xht46
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-005.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-006.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-007.xht38
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-008.xht38
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002-ref.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-003.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-005.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-006.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-007.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-008.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-009.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-010.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/descendent-selector-011.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/dom-hover-001.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/dom-hover-002.xht32
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001-ref.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001.xht45
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001-ref.html14
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002-ref.html15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-child-selector-003.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-001-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-001.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos-ref.html6
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos.html13
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001.xht44
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002.xht62
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003-ref.xht8
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003a.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003b.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001-ref.xht10
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001-ref.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-002.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-003.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-004.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-005.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-006.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-007.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-002.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-003.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-004.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-005.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-006.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000-ref.html14
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001-ref.html13
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002-ref.html8
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003-ref.html13
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-004.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005-ref.html8
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-006.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007-ref.html17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-008.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-009.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-010.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-011.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-012.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-013.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-014.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-015.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-016.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-017.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-018.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-019.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-020.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-021.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-022.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-023.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-024.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-025.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-026.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-027.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028-ref.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028.xht44
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-029.xht45
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-001-ref.xht10
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-001.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001-ref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-floats-002.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-floats-003.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-floats-004.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001-ref.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002-ref.xht10
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003-ref.xht10
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-001.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-002.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-004.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-005.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-007.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-008.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-010.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-011.xht46
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012-ref.xht73
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012.xht51
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013-ref.xht37
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013.xht33
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-014.xht33
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015-ref.xht37
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-016.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-017.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-018.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-019.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-020.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-021.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-README9
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-002.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-003.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-004.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-006.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-007.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-008.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-009.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-010.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-011.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-012.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-013.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-014.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-015.xht35
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-016.xht34
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/first-line-selector-017.xht45
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-001.xht40
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-002.xht39
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-003.xht42
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/focus-selector-001.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/grouping-002-notref.xht12
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/grouping-002-ref.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/grouping-002.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/hover-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/hover-selector-002.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/hover-selector-003.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/html-case-sensitivity-001.html21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/id-selector-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/id-selector-002.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/id-selector-004.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/id-selector-005.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/id-selector-006.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-001-ref.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-001.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-003.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-004-ref.html15
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht.headers1
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/lang-selector-006.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-001.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-002.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-003.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-004.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-005.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-001.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-002.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-003.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-005.xht44
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-006.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-007.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-008-ref.html8
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-008.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-009.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-010.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-011.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-012.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-013.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-014.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-015.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/pseudo-016.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-001-ref.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-001.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-002-ref.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-002.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/sibling-selector-002.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-green.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-lime.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-maroon.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-navy.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-red.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/1x1-white.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/60x60-gg-rr.pngbin0 -> 224 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/60x60-green.pngbin0 -> 218 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/a-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/b-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/blue15x15.pngbin0 -> 185 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/c-red.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/cat.pngbin0 -> 1883 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/diamond.pngbin0 -> 188 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/green15x15.pngbin0 -> 170 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rgr-grg.pngbin0 -> 222 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rrg-rgg.pngbin0 -> 231 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/pattern-rgr-grg-rgr.pngbin0 -> 223 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/pattern-tr.pngbin0 -> 137 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/ring.pngbin0 -> 715 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/square-purple.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/square-teal.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/square-white.pngbin0 -> 78 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-blue.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-green.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-lime.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-orange.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-red.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-white.pngbin0 -> 85 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/swatch-yellow.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/test-bl.pngbin0 -> 1368 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/test-br.pngbin0 -> 1045 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/test-outer.pngbin0 -> 2412 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/test-tl.pngbin0 -> 1025 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/support/test-tr.pngbin0 -> 1235 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/type-selector-001-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/type-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-notref.xht11
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-ref.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-notref.xht12
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-ref.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-002.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-003.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-004.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-005-ref.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/selectors/universal-selector-005.xht35
1107 files changed, 22149 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/selectors/.htaccess b/testing/web-platform/tests/css/CSS2/selectors/.htaccess
new file mode 100644
index 0000000000..fab8039332
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/.htaccess
@@ -0,0 +1,4 @@
+<Files ~ "^lang-selector-005\.(xht|xhtml|xml|html|htm)$">
+AddLanguage fr .xht .xhtml .xml .html .htm
+</Files>
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/active-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/active-selector-001.xht
new file mode 100644
index 0000000000..677d1a1b4e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/active-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: Active pseudo-class matching</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Active pseudo-class selector matches any element which has been activated until it has been deactivated." />
+ <style type="text/css">
+ div:active
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is initially black, when it is activated it turns green, and it returns to black when it is deactivated.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/active-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/active-selector-002.xht
new file mode 100644
index 0000000000..ef29818693
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/active-selector-002.xht
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :active (basic test)</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/active/002.xml" type="application/xhtml+xml"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/active/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact"/>
+ <style type="text/css">
+
+ /* Make our document's head visible */
+ html { margin: 0; padding: 1em; }
+ head { display: block; }
+ title, style { display: none; }
+ link { display: inline; }
+ body { margin: 0; padding: 0; }
+ p { margin: 1em 0; }
+
+ /* Make the metadata links invisible */
+ [rel="author"], [rel="alternate"], [rel="help"] { display: none; }
+
+ /* The test */
+ link:before { content: '1. Link A'; }
+ /* Disabled due to http://www.w3.org/Bugs/Public/show_bug.cgi?id=11343
+ p:active, span:active { color: yellow; border: red solid thick; background: red; } */
+ .test { color: blue; }
+ a:active, link:active { color: white; background: green; border: green solid thick; }
+
+ /* Informative status message */
+ .msg { background: white; color: white; line-height: 1.2 }
+ .msg p { margin: 0; margin-bottom: -1.2em; position: relative; }
+ :target { font-style: italic; color: silver; z-index: 1; }
+ </style>
+ <link class="test" href="#targetA" rel="bookmark"/>
+ </head>
+ <body>
+ <div><a class="test" href="#targetB">2. Link B</a></div>
+ <div><a class="test" href="#targetC"><span>3. Link C</span></a></div>
+ <p>Clicking the links above, or activating them with the keyboard, should make them go green in exactly the same way.</p>
+ <div class="msg">
+ <p>If you can see this sentence, ignore the sentences below.</p>
+ <p id="targetA">Link A was successfully activated.</p>
+ <p id="targetB">Link B was successfully activated.</p>
+ <p id="targetC">Link C was successfully activated.</p>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-001.xht
new file mode 100644
index 0000000000..f19bc069d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: ID selector without value and no matching element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="Attribute selector without a value matches any element which has that attribute set." />
+ <style type="text/css">
+ [id]
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-002.xht
new file mode 100644
index 0000000000..16b4ff8128
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-selector-002.xht
@@ -0,0 +1,20 @@
+<!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: Attribute selector without value</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Attribute selector without a value matches any element which has that attribute set." />
+ <style type="text/css">
+ [id]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002-ref.xht
new file mode 100644
index 0000000000..24c4ab4b25
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002-ref.xht
@@ -0,0 +1,19 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+p {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>This sentence must be green.</p>
+<p>This sentence must be green.</p>
+<p>This sentence must be green.</p>
+<p>This sentence must be green.</p>
+<p>This sentence must be green.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002.xht
new file mode 100644
index 0000000000..7781f9f616
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-token-selector-002.xht
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: [attr~=""]Attribute Selectors with Empty String Values</title>
+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#tokenization"/>
+ <link rel="match" href="attribute-token-selector-002-ref.xht"/>
+ <meta name="assert" content="[attr~=''] is valid but matches nothing."/>
+ <style type="text/css">
+ p {
+ color: green;
+ }
+
+ p.valid {
+ color: red;
+ }
+ [title~=""], [title~=''], p.valid {
+ color: green;
+ }
+ [title~=], p.valid {
+ color: red;
+ }
+
+ [title~=""] {
+ color: red;
+ }
+ </style>
+
+ </head>
+ <body>
+ <p class="valid">This sentence must be green.</p>
+ <p title="">This sentence must be green.</p>
+ <p title=" ">This sentence must be green.</p>
+ <p title=" ">This sentence must be green.</p>
+ <p title="q">This sentence must be green.</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001-ref.xht
new file mode 100644
index 0000000000..1aaf21d22e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body lang="en-us">
+<p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
+<div>Filler Text</div>
+<div class="green" lang="fr-fr">Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001.xht
new file mode 100644
index 0000000000..0363f4ac53
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: Attribute selector matching value</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="attribute-value-selector-001-ref.xht"/>
+ <meta name="assert" content="Selector matches attribute with specific value." />
+ <style type="text/css">
+ [id=div2]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body lang="en-us">
+ <p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
+ <div id="div1">Filler Text</div>
+ <div id="div2" lang="fr-fr">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-002.xht
new file mode 100644
index 0000000000..a63a596599
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-002.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Attribute selector matching value in hyphenated list</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="attribute-value-selector-001-ref.xht"/>
+ <meta name="assert" content="Selector matches attributes with specific value in a hyphen-separated list." />
+ <style type="text/css">
+ [lang|=fr]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body lang="en-us">
+ <p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
+ <div>Filler Text</div>
+ <div lang="fr-fr">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-003.xht
new file mode 100644
index 0000000000..a0e8ae7bb6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-003.xht
@@ -0,0 +1,21 @@
+<!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: Attribute selector matching value in list</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="attribute-value-selector-001-ref.xht"/>
+ <meta name="assert" content="Selector matches attribute with specific value in a space-separated list." />
+ <style type="text/css">
+ [class~=est]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body lang="en-us">
+ <p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
+ <div class="t estDiv">Filler Text</div>
+ <div class="t est" lang="fr-fr">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-004.xht
new file mode 100644
index 0000000000..e2c601a7bd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-004.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Numeric attributes</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="Attributes cannot begin with numerals." />
+ <style type="text/css">
+ [1digit], div
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-005.html b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-005.html
new file mode 100644
index 0000000000..08462db67a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-005.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: Case sensitivity of attributes and attribute values in HTML 4.01</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+ <link rel="match" href="../reference/filler-text-below-green.xht">
+ <meta name="flags" content="HTMLonly">
+ <meta name="assert" content="HTML 4.01 attribute names are not case sensitive.">
+ <style type="text/css">
+ div[CLASS]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-006.xht
new file mode 100644
index 0000000000..99ce155f95
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/attribute-value-selector-006.xht
@@ -0,0 +1,20 @@
+<!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: Multiple and repeating attributes</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Multiple attribute selectors can be used to refer to several attributes of an element, or even several times to the same attribute." />
+ <style type="text/css">
+ [class="class1"][id="div1"][class="class1"][id="div1"][id="div1"]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="class1" id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001-ref.xht
new file mode 100644
index 0000000000..471ecaa494
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001-ref.xht
@@ -0,0 +1,16 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+div {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<div>Filler Text Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001.xht
new file mode 100644
index 0000000000..78e04da085
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/before-after-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: After and before pseudo-elements</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#before-and-after" />
+ <link rel="match" href="before-after-selector-001-ref.xht"/>
+ <meta name="assert" content="After and before pseudo-element allows inserted text after or before a given element." />
+ <style type="text/css">
+ div:after, div:before
+ {
+ content: "Filler Text";
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div> </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001-ref.xht
new file mode 100644
index 0000000000..b9c6a3ce5a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001-ref.xht
@@ -0,0 +1,19 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+div {
+ color: green;
+}
+.first {
+ font-size: 98px;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green and the "F" is larger than the remaining text.</p>
+<div><span class="first">F</span>iller Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001.xht
new file mode 100644
index 0000000000..76a9f8b77c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/before-first-letter-selector-001.xht
@@ -0,0 +1,25 @@
+<!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: First-letter pseudo-element with :before pseudo-element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#before-and-after" />
+ <link rel="match" href="before-first-letter-selector-001-ref.xht"/>
+ <meta name="assert" content="When the :first-letter pseudo-element is combined with :before, :first-letter applies to the generated text of :before." />
+ <style type="text/css">
+ div:before
+ {
+ content: "Filler Text";
+ color: green;
+ }
+ div:first-letter
+ {
+ font-size: 98px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green and the "F" is larger than the remaining text.</p>
+ <div></div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-001.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-001.xht
new file mode 100644
index 0000000000..3808543a23
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-001.xht
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter applied to joined text</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <meta name="assert" content=":first-letter applied to joined text should not break joining"/>
+ <style type="text/css"><![CDATA[
+ .test:first-letter {
+ color: blue;
+ }
+ .test, .control {
+ font-size: 2em;
+ }
+ ]]></style>
+ </head>
+ <body>
+
+ <p>The rightmost half of the rightmost compound on the first line below should be blue. Except for color the two lines below should be identical.</p>
+
+ <p class="test">بائعة</p>
+
+ <p class="control">بائعة</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-002.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-002.xht
new file mode 100644
index 0000000000..e2efaa3b3b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-002.xht
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: first-letter and inherent rtl</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <meta name="assert" content=":first-letter applied to inherent RTL text should start from the right"/>
+ <style type="text/css"><![CDATA[
+ .test {font-size: 2em;}
+ .test:first-letter {color:blue;}
+ ]]></style>
+ </head>
+ <body>
+
+ <p>The rightmost letter (&#x05D0;) in the line below should be blue.</p>
+
+ <p class="test">&#x05D0;&#x05D1;&#x05D1; &#x05D1;&#x05D1;&#x05D1; &#x05D1;&#x05D1;&#x05D1;</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-003.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-003.xht
new file mode 100644
index 0000000000..a3aa8f292d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-003.xht
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter and direction:rtl - inherent ltr text</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-direction"/>
+ <meta name="assert" content=":first-letter applied to inherent LTR text in RTL context should adhere to text direction, not paragraph direction"/>
+ <style type="text/css"><![CDATA[
+ p.test {
+ font-size: 2em;
+ direction:rtl;
+ }
+ p.test:first-letter {
+ color:blue;
+ }
+ ]]></style>
+ </head>
+ <body>
+
+ <p>The leftmost letter (a) in the line below should be blue.</p>
+
+ <p class="test">axx xxx xxx</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-004.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-004.xht
new file mode 100644
index 0000000000..7b28da99c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-004.xht
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter and bidi-override - inherent ltr text</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-unicode-bidi"/>
+ <meta name="assert" content=":first-letter applied to inherent LTR text reordered with bidi-override should pick out the first logical letter"/>
+ <style type="text/css"><![CDATA[
+ p.test {
+ font-size: 2em;
+ unicode-bidi: bidi-override;
+ direction:rtl;
+ }
+ p.test:first-letter {
+ color:blue;
+ }
+ ]]></style>
+ </head>
+ <body>
+
+ <p>The rightmost letter (a) in the line below should be blue.</p>
+
+ <p class="test">axx xxx xxx</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-005.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-005.xht
new file mode 100644
index 0000000000..a8e11530b3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-005.xht
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter and bidi-override - inherent rtl text</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-unicode-bidi"/>
+ <meta name="assert" content=":first-letter applied to inherent RTL text reordered with bidi-override should pick out the first logical letter"/>
+ <style type="text/css"><![CDATA[
+ p.test {
+ font-size: 2em;
+ unicode-bidi: bidi-override;
+ direction:ltr;
+ }
+ p.test:first-letter {
+ color:blue;
+ }
+ ]]></style>
+ </head>
+ <body>
+
+ <p>The &#x05D0; below should be blue.</p>
+
+ <p class="test">&#x05D0;&#x05D1;&#x05D1;</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-006.xht b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-006.xht
new file mode 100644
index 0000000000..45e649a49a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/bidi-first-letter-006.xht
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter in the middle of the line because of bidi reordering</title>
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
+ <meta name="assert" content=":first-letter not at the start of the line because of bidi reordering may not be applied, but if it is applied it should be applied to the logical first letter and no other letter"/>
+ <style type="text/css"><![CDATA[
+ .test {font-size: 2em;}
+ .test:first-letter {color:blue;}
+ ]]></style>
+ </head>
+ <body>
+
+ <p>If anything below is blue, it should be the &#x05D0;. No blue at all is also pass. Any other blue letter is fail.</p>
+
+ <p class="test">&#x05D0;&#x05D1;&#x05D1; &#x05D1;&#x05D1; &#x05D1;&#x05D1; xxxx xxx</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-001-ref.xht
new file mode 100644
index 0000000000..abf6798106
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-001-ref.xht
@@ -0,0 +1,11 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+<p>Test passes if there is no red visible on the page.</p>
+<h1>Filler Text</h1>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-001.xht
new file mode 100644
index 0000000000..cc8c7be35a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: Child selector does not match when there is no matching parent</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#child-selectors" />
+ <link rel="match" href="child-selector-001-ref.xht"/>
+ <meta name="assert" content="Child selectors only apply when parent and child elements match." />
+ <style type="text/css">
+ div > h1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <h1>Filler Text</h1>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-002-ref.xht
new file mode 100644
index 0000000000..2d55a15376
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-002-ref.xht
@@ -0,0 +1,11 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+<p>Test passes if there is no red visible on the page.</p>
+<div><blockquote><h1>Filler Text</h1></blockquote></div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-002.xht
new file mode 100644
index 0000000000..a343e7c4bf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-002.xht
@@ -0,0 +1,24 @@
+<!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: Child selector without direct child</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#child-selectors" />
+ <link rel="match" href="child-selector-002-ref.xht"/>
+ <meta name="assert" content="Child selectors only apply to child elements when there is a direct parent child relationship." />
+ <style type="text/css">
+ div > h1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <blockquote>
+ <h1>Filler Text</h1>
+ </blockquote>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-003-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-003-ref.xht
new file mode 100644
index 0000000000..ed30a446aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-003-ref.xht
@@ -0,0 +1,16 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+h1 {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<div><h1>Filler Text</h1></div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/child-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/child-selector-003.xht
new file mode 100644
index 0000000000..62bb527077
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/child-selector-003.xht
@@ -0,0 +1,22 @@
+<!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: Child selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#child-selectors" />
+ <link rel="match" href="child-selector-003-ref.xht"/>
+ <meta name="assert" content="Child selectors apply to child elements." />
+ <style type="text/css">
+ div > h1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <h1>Filler Text</h1>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-001.xht
new file mode 100644
index 0000000000..580f661fd0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: Class selectors with only a partial match of 'class' attribute</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="Class selector need to match any or all of the values in the 'class' attribute." />
+ <style type="text/css">
+ div.div1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div class="div11">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-002.xht
new file mode 100644
index 0000000000..5bf4e6abd5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-002.xht
@@ -0,0 +1,21 @@
+<!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: Class selectors with a type</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Class selector with a type, match the appropriate element." />
+ <style type="text/css">
+ div.div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-003.xht
new file mode 100644
index 0000000000..1d17a6ec9b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-003.xht
@@ -0,0 +1,21 @@
+<!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: Class selectors without a type</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Class selector without a type, match the appropriate element." />
+ <style type="text/css">
+ .div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-004.xht
new file mode 100644
index 0000000000..c7faefbce1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-004.xht
@@ -0,0 +1,22 @@
+<!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: Invalid class selectors with a space between the "." and the class name</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="The attribute value of a class selector followed by white space is invalid." />
+ <style type="text/css">
+ div. div1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-005.xht
new file mode 100644
index 0000000000..a62adaee1c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-005.xht
@@ -0,0 +1,23 @@
+<!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: Invalid class selectors with a carriage return between the "." and the class name</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="The attribute value of a class selector followed by white space is invalid." />
+ <style type="text/css">
+ .
+ div1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-006.xht
new file mode 100644
index 0000000000..776624ae12
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-006.xht
@@ -0,0 +1,21 @@
+<!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: Multiple class selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="All class names in the selector need to match all of the 'class' attribute values." />
+ <style type="text/css">
+ div.bar.foo.bat
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="foo bar bat">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-007.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-007.xht
new file mode 100644
index 0000000000..5ec9821746
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-007.xht
@@ -0,0 +1,21 @@
+<!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: Multiple class selectors and missing class values</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="All class names in the selector need to match all of the 'class' attribute values." />
+ <style type="text/css">
+ div.bar.foo.bat
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div class="foo bar xyz abc">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-008.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-008.xht
new file mode 100644
index 0000000000..b4ceabb6a0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-008.xht
@@ -0,0 +1,18 @@
+<!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: CSS: Case Sensitive Classes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/class/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ .teST { color: green; }
+ .TEst { background: red; color: yellow; } /* doesn't apply */
+ </style>
+ </head>
+ <body>
+ <p class="teST">This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-009.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-009.xht
new file mode 100644
index 0000000000..cba3e08289
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-009.xht
@@ -0,0 +1,19 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: Multiple classes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/class/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/ref-green-background.xht" />
+ <style type="text/css">
+ p { background: green; color: white; }
+ .fail.test { background: red; color: yellow; }
+ </style>
+ </head>
+ <body>
+ <p class="pass test">This should have a green background.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-010.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-010.xht
new file mode 100644
index 0000000000..e0fd5bc19a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-010.xht
@@ -0,0 +1,19 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: Multiple classes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/class/003.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/ref-green-background.xht" />
+ <style type="text/css">
+ p { background: red; color: yellow; }
+ .pass.test { background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p class="pass test">This should have a green background.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-011.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-011.xht
new file mode 100644
index 0000000000..ac49276ec2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-011.xht
@@ -0,0 +1,19 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: Multiple classes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/class/004.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="../reference/ref-green-background.xht" />
+ <style type="text/css">
+ p { background: red; color: yellow; }
+ .pass { background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p class="pass test">This should have a green background.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-012-ref.html b/testing/web-platform/tests/css/CSS2/selectors/class-selector-012-ref.html
new file mode 100644
index 0000000000..52f9a3abce
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-012-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ p {
+ color: white;
+ background: green;
+ }
+</style>
+<body>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+ <p>This line should be green.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/class-selector-012.xht b/testing/web-platform/tests/css/CSS2/selectors/class-selector-012.xht
new file mode 100644
index 0000000000..ea57e2b8a5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/class-selector-012.xht
@@ -0,0 +1,26 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: Multiple classes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/class/005.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#class-html" />
+ <link rel="help" href="https://www.w3.org/TR/selectors/#class-html" />
+ <link rel="match" href="class-selector-012-ref.html" />
+ <style type="text/css">
+ p { background: red; color: yellow; }
+ .test { background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p class="test line">This line should be green.</p>
+ <p class="line test">This line should be green.</p>
+ <p class=" test line">This line should be green.</p>
+ <p class=" line test">This line should be green.</p>
+ <p class="test line ">This line should be green.</p>
+ <p class="line test ">This line should be green.</p>
+ <p class=" test line ">This line should be green.</p>
+ <p class=" line test ">This line should be green.</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/combinator-001.xht b/testing/web-platform/tests/css/CSS2/selectors/combinator-001.xht
new file mode 100644
index 0000000000..e695258889
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/combinator-001.xht
@@ -0,0 +1,24 @@
+<!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: Descendant combinators and newlines</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Newlines can appear between a descendent combinator and the simple selectors around it." />
+ <style type="text/css">
+ #div1
+>
+p
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/combinator-002.xht b/testing/web-platform/tests/css/CSS2/selectors/combinator-002.xht
new file mode 100644
index 0000000000..543b5b3cde
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/combinator-002.xht
@@ -0,0 +1,21 @@
+<!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: Sibling combinators and spaces</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Spaces can appear between a sibling combinator and its simple selectors." />
+ <style type="text/css">
+ #div1 + p
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1"></div>
+ <p>Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/combinator-003.xht b/testing/web-platform/tests/css/CSS2/selectors/combinator-003.xht
new file mode 100644
index 0000000000..eb51e18602
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/combinator-003.xht
@@ -0,0 +1,23 @@
+<!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: Sibling combinators and newlines</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Newlines can appear between a sibling combinator and the simple selectors around it." />
+ <style type="text/css">
+ #div1
++
+p
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1"></div>
+ <p>Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/combinator-004.xht b/testing/web-platform/tests/css/CSS2/selectors/combinator-004.xht
new file mode 100644
index 0000000000..f044733598
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/combinator-004.xht
@@ -0,0 +1,22 @@
+<!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: Descendant combinators and spaces</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Spaces can appear between a descendant combinator and the simple selectors around it." />
+ <style type="text/css">
+ #div1 > p
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-001.xht
new file mode 100644
index 0000000000..f7eb15dfe6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-001.xht
@@ -0,0 +1,44 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ table {border-spacing: 0px;}
+
+ td
+ {
+ background-color: green;
+ height: 100px;
+ padding: 0px;
+ width: 100px;
+ }
+
+ td[colspan] {background-color: red;}
+
+ td[colspan="1"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <table>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-002.xht
new file mode 100644
index 0000000000..8ad62c99a8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-002.xht
@@ -0,0 +1,44 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ table {border-spacing: 0px;}
+
+ td
+ {
+ background-color: green;
+ height: 100px;
+ padding: 0px;
+ width: 100px;
+ }
+
+ td[rowspan] {background-color: red;}
+
+ td[rowspan="1"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <table>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-003.xht
new file mode 100644
index 0000000000..628019b2dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-003.xht
@@ -0,0 +1,46 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ table {border-spacing: 0px;}
+
+ td
+ {
+ height: 100px;
+ padding: 0px;
+ width: 100px;
+ }
+
+ col {background-color: green;}
+
+ col[span] {background-color: red;}
+
+ col[span="1"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <table>
+ <col></col>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-004.xht
new file mode 100644
index 0000000000..1c3ffdf700
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-004.xht
@@ -0,0 +1,46 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ table {border-spacing: 0px;}
+
+ td
+ {
+ height: 100px;
+ padding: 0px;
+ width: 100px;
+ }
+
+ colgroup {background-color: green;}
+
+ colgroup[span] {background-color: red;}
+
+ colgroup[span="1"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <table>
+ <colgroup></colgroup>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-005.xht
new file mode 100644
index 0000000000..d3fc472404
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-005.xht
@@ -0,0 +1,30 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ a {background-color: green;}
+ a[shape] {background-color: red;}
+ a[shape="rect"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a green stripe and <strong>no red</strong>.</p>
+
+ <p><a>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</a></p>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-006.xht
new file mode 100644
index 0000000000..2709a62a16
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-006.xht
@@ -0,0 +1,31 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ form {background-color: green;}
+ form[method] {background-color: red;}
+ form[method="get"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a green bar across the page and <strong>no red</strong>.</p>
+
+ <form action="">
+ <p>&nbsp;</p>
+ </form>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-007.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-007.xht
new file mode 100644
index 0000000000..2dc423aa1b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-007.xht
@@ -0,0 +1,38 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ input
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+
+ input[type] {background-color: red;}
+
+ input[type="text"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a green square and <strong>no red</strong>.</p>
+
+ <form action="">
+ <p><input></input></p>
+ </form>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-008.xht b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-008.xht
new file mode 100644
index 0000000000..ab507433e4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/default-attribute-selector-008.xht
@@ -0,0 +1,38 @@
+<!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: attribute selector - Default attribute values in DTDs</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#default-attrs" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#matching-attrs" />
+ <meta content="Default attribute values may be declared in an external resource such as a DTD. In such case, the default attributes may or may not appear in the document tree. When default attributes appear in the document tree, then their correspondent default values must be included." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ button
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+
+ button[type] {background-color: red;}
+
+ button[type="submit"] {background-color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a green square and <strong>no red</strong>.</p>
+
+ <form action="">
+ <p><button>&nbsp;</button></p>
+ </form>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-001.xht
new file mode 100644
index 0000000000..a494242eb5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: Descendent selector does not apply to parent element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="Descendent selectors are applied only to descendents." />
+ <style type="text/css">
+ div em
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002-ref.xht
new file mode 100644
index 0000000000..f0b511062f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002-ref.xht
@@ -0,0 +1,16 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+div {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<div><em>Filler Text</em></div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002.xht
new file mode 100644
index 0000000000..dcc9f91773
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-002.xht
@@ -0,0 +1,22 @@
+<!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: Descendent selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="Descendent selectors are applied only to descendents." />
+ <style type="text/css">
+ div em
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-003.xht
new file mode 100644
index 0000000000..93e8915345
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-003.xht
@@ -0,0 +1,24 @@
+<!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: Descendent selector with additional element between</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="Descendent selectors are applied to descendents even if additional elements separate parent and subject of selector." />
+ <style type="text/css">
+ div em
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <span>
+ <em>Filler Text</em>
+ </span>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004-ref.xht
new file mode 100644
index 0000000000..42502bb4b2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004-ref.xht
@@ -0,0 +1,11 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+<p>Test passes if there is no red visible on the page.</p>
+<div><em>Filler Text</em></div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004.xht
new file mode 100644
index 0000000000..94b5aa49ae
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-004.xht
@@ -0,0 +1,22 @@
+<!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: Descendent selector with incorrect parent element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-004-ref.xht"/>
+ <meta name="assert" content="Descendent selectors are applied only to descendents where the parent element matches." />
+ <style type="text/css">
+ p em
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-005.xht
new file mode 100644
index 0000000000..74323f91a1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-005.xht
@@ -0,0 +1,20 @@
+<!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: Grandchild selection with no children</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="Grandchild selection is applied only to elements which have grandchildren." />
+ <style type="text/css">
+ div * em
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-006.xht
new file mode 100644
index 0000000000..5e7167fefe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-006.xht
@@ -0,0 +1,22 @@
+<!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: Grandchild selection with no grandchildren</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-004-ref.xht"/>
+ <meta name="assert" content="Grandchild selection is applied only to elements which have grandchildren." />
+ <style type="text/css">
+ div * em
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-007.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-007.xht
new file mode 100644
index 0000000000..d438df2d0d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-007.xht
@@ -0,0 +1,24 @@
+<!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: Grandchild selection</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="Grandchild selection is applied only to elements which are grandchildren." />
+ <style type="text/css">
+ div * em
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <span>
+ <em>Filler Text</em>
+ </span>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-008.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-008.xht
new file mode 100644
index 0000000000..ce57a7e4d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-008.xht
@@ -0,0 +1,22 @@
+<!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: Descendent selector with ID attribute does not match elements without the ID attribute</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-004-ref.xht"/>
+ <meta name="assert" content="Descendent selector with attribute applies only to applicable elements." />
+ <style type="text/css">
+ div em[id]
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-009.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-009.xht
new file mode 100644
index 0000000000..6929b54023
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-009.xht
@@ -0,0 +1,24 @@
+<!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: Descendent selector with ID attribute</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="Descendent selector with attribute applies only to applicable elements." />
+ <style type="text/css">
+ div em[id]
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <span>
+ <em id="em1">Filler Text</em>
+ </span>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-010.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-010.xht
new file mode 100644
index 0000000000..5330144f4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-010.xht
@@ -0,0 +1,22 @@
+<!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: Descendent selector and tabs</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="A descendant selector can be separated by a tab." />
+ <style type="text/css">
+ #div1 em
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-011.xht b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-011.xht
new file mode 100644
index 0000000000..4373d7bd39
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/descendent-selector-011.xht
@@ -0,0 +1,23 @@
+<!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: Descendent selector and newlines</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" />
+ <link rel="match" href="descendent-selector-002-ref.xht"/>
+ <meta name="assert" content="A descendant selector can be separated by a newline." />
+ <style type="text/css">
+ #div1
+ em
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">
+ <em>Filler Text</em>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/dom-hover-001.xht b/testing/web-platform/tests/css/CSS2/selectors/dom-hover-001.xht
new file mode 100644
index 0000000000..dfd44a0071
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/dom-hover-001.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Effect of DOM mutations on :hover matching</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
+ <link rel="help"
+ href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="dom interact" />
+ <script type="text/javascript">
+ function remove() {
+ var node = document.getElementById("target");
+ node.parentNode.removeChild(node);
+ }
+ </script>
+ <style>
+ div#green { color: red; }
+ div:hover { color: green !important; }
+ </style>
+ </head>
+ <body>
+ <div id="target" onmouseover="setTimeout(remove, 1000)">Hover this text,
+ then wait till it disappears. At that point there should be no red.
+ </div>
+ <div id="green">
+ This should end up green.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/dom-hover-002.xht b/testing/web-platform/tests/css/CSS2/selectors/dom-hover-002.xht
new file mode 100644
index 0000000000..5491d0a2d3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/dom-hover-002.xht
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Effect of DOM mutations on :hover matching</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
+ <link rel="help"
+ href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="dom interact" />
+ <script type="text/javascript">
+ function remove() {
+ var node = document.getElementById("target");
+ node.parentNode.removeChild(node);
+ }
+ </script>
+ <style>
+ div:hover { color: red; }
+ div#green { color: green; }
+ </style>
+ </head>
+ <body>
+ <div>
+ Dummy text. Dummy text.
+ <div id="target" onmouseover="setTimeout(remove, 1000)"><span>Hover this text,
+ then wait till it disappears. At that point there should be no red.</span>
+ </div>
+ </div>
+ <div id="green">
+ Dummy text. Dummy text.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001-ref.xht
new file mode 100644
index 0000000000..16045a3407
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001-ref.xht
@@ -0,0 +1,24 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+div {
+ color: green;
+}
+</style>
+</head>
+<body>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+<div>This should be green</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001.xht b/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001.xht
new file mode 100644
index 0000000000..f12c2790e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/dynamic-sibling-combinator-001.xht
@@ -0,0 +1,45 @@
+<!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: Testing dynamic changes and the '+' combinator</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
+ <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors"/>
+ <link rel="match" href="dynamic-sibling-combinator-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <meta name="assert" content="Dynamically changing an attribute should cause selectors using '+' to match as needed."/>
+ <style type="text/css"><![CDATA[
+ div { color: red; }
+ [class=foo] + div { color: green; }
+ [class=foo] + div + div { color: green; }
+ [class=foo] + div + div + div { color: green; }
+ [class=foo] + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div + div + div + div + div { color: green; }
+ [class=foo] + div + div + div + div + div + div + div + div + div + div { color: green; }
+ ]]></style>
+ <script type="text/javascript"><![CDATA[
+ window.onload = function() {
+ document.body.offsetWidth;
+ document.getElementById("test").className = "foo";
+ }
+ ]]></script>
+ </head>
+ <body>
+ <div id="test"></div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ <div>This should be green</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001-ref.html
new file mode 100644
index 0000000000..8aa67fa12a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001-ref.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ .green {
+ color: green;
+ }
+</style>
+<body>
+ <div class="green">Filler Text</div>
+ <div>Filler Text</div>
+ <p>Test passes if the first "Filler Text" above is green and the second one is black.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001.xht
new file mode 100644
index 0000000000..8f13e804fe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: First-child pseudo-class</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-child" />
+ <link rel="match" href="first-child-selector-001-ref.html" />
+ <meta name="assert" content="First-child pseudo-class matches only the first element of its type." />
+ <style type="text/css">
+ div:first-child
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <div>Filler Text</div>
+ <div>Filler Text</div>
+ <p>Test passes if the first "Filler Text" above is green and the second one is black.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002-ref.html
new file mode 100644
index 0000000000..c2ee2e78bf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ .green {
+ color: green;
+ }
+</style>
+<body>
+ Filler Text
+ <div class="green">Filler Text</div>
+ <div>Filler Text</div>
+ <p>Test passes if the second line of "Filler Text" above is green and the first and third lines are black.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002.xht
new file mode 100644
index 0000000000..2115e55129
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-002.xht
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: First-child pseudo-class with text node</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-child" />
+ <link rel="match" href="first-child-selector-002-ref.html" />
+ <meta name="assert" content="First-child pseudo-class matches only the first element of its type ignoring text nodes." />
+ <style type="text/css">
+ div:first-child
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ Filler Text
+ <div>Filler Text</div>
+ <div>Filler Text</div>
+ <p>Test passes if the second line of "Filler Text" above is green and the first and third lines are black.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-003.xht
new file mode 100644
index 0000000000..a02e002777
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-child-selector-003.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: CSS: 1 simple test of :first-child</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/child/001.xml" type="application/xhtml+xml"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-child" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ html { color: red; }
+ :root:first-child { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-001-ref.xht
new file mode 100644
index 0000000000..59a9b7b3c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-001-ref.xht
@@ -0,0 +1,11 @@
+<!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>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ span { color: green; }
+ </style>
+</head>
+<body>
+ <div><span>T</span>his is text</div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-001.xht
new file mode 100644
index 0000000000..8fd71ad835
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-001.xht
@@ -0,0 +1,16 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>This is text</div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos-ref.html
new file mode 100644
index 0000000000..7c6cbbf2c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos-ref.html
@@ -0,0 +1,6 @@
+<!doctype html>
+<title>CSS Test Reference</title>
+<style>
+ span { color: green; }
+</style>
+<div><span>P</span>ASS</div>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos.html
new file mode 100644
index 0000000000..c8b14b462c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-abspos.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<title>::first-letter doesn't consider an abspos</title>
+<meta charset="utf-8">
+<link rel="help" href="https://www.w3.org/TR/CSS21/selector.html#first-letter">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1788785">
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="match" href="first-letter-abspos-ref.html">
+<style>
+ div::first-letter { color: green }
+ span { position: absolute; color: transparent; }
+</style>
+<div><span>F</span>PASS</div>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001-ref.xht
new file mode 100644
index 0000000000..ba6a636856
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001-ref.xht
@@ -0,0 +1,17 @@
+<!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>
+<style type="text/css">
+ span:before { content: '"'; }
+ span:after { content: '"'; }
+ :after { border: 3px solid green; }
+ :first-letter { color: green; }
+</style>
+</head>
+<body>
+
+<p><span>Foo</span></p>
+
+<p id="p2"><span id="q2"></span></p>
+
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001.xht
new file mode 100644
index 0000000000..dcde3ad055
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-001.xht
@@ -0,0 +1,44 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-dynamic-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+<script type="text/javascript">function setTextContent(n, t) { n.textContent = t; }
+
+var stylesheets = [];
+function initFuzzerSpecific()
+{
+ var myStylesheetHolder = document.getElementsByTagName("head")[0];
+
+ for (var i = 0; i &lt; 25; ++i) {
+ var s = document.createElementNS("http://www.w3.org/1999/xhtml", 'style');
+ s.style.display = "none";
+ myStylesheetHolder.appendChild(s);
+ stylesheets.push(s);
+ }
+}
+</script>
+<style type="text/css">
+ span:before { content: open-quote; }
+ span:after { content: close-quote; }
+ span { quotes: '"' '"'; }
+</style>
+</head>
+<body>
+
+<p><span>Foo</span></p>
+
+<p id="p2"><span id="q2"></span></p>
+
+<script type="text/javascript">
+ document.body.offsetWidth;
+ initFuzzerSpecific();
+ setTextContent(stylesheets[1], "*:after { border: 3px solid green; } :first-letter { color: green; }");
+ setTextContent(stylesheets[2], "*:before { counter-reset: chicken; }");
+</script>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002-ref.xht
new file mode 100644
index 0000000000..a5792c6f8d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002-ref.xht
@@ -0,0 +1,11 @@
+<!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>
+</head>
+<body>
+
+<p><q>Foo</q></p>
+
+<p id="p2">&lt;1&gt;0&lt;/1&gt;</p>
+
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002.xht
new file mode 100644
index 0000000000..c689aecc44
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-002.xht
@@ -0,0 +1,62 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-dynamic-002-ref.xht"/>
+ <meta name="flags" content="dom" />
+<script type="text/javascript">
+function boom1()
+{
+ initFuzzerSpecific();
+ setTextContent(stylesheets[1], "*:first-letter { }");
+ setTextContent(stylesheets[2], "*:before { counter-reset: chicken; }");
+ document.body.offsetWidth;
+ boom2();
+}
+
+function boom2()
+{
+ setTextContent(stylesheets[3], "#q2:first-letter { content: 'generated'; }");
+ setTextContent(stylesheets[1], "");
+ setTextContent(stylesheets[4], "#q2 { quotes: '&lt;1&gt;' '&lt;/1&gt;'; }");
+ document.body.offsetWidth;
+ boom3();
+}
+
+function boom3()
+{
+ document.getElementById("p2").style.counterReset = "egg";
+ setTextContent(stylesheets[1], "*:first-letter { }");
+}
+
+function setTextContent(n, t) { n.textContent = t; }
+
+var stylesheets = [];
+function initFuzzerSpecific()
+{
+ var myStylesheetHolder = document.getElementsByTagName("head")[0];
+
+ for (var i = 0; i &lt; 25; ++i) {
+ var s = document.createElementNS("http://www.w3.org/1999/xhtml", 'style');
+ s.style.display = "none";
+ myStylesheetHolder.appendChild(s);
+ stylesheets.push(s);
+ }
+}
+</script>
+
+</head>
+<body>
+
+<p><q>Foo</q></p>
+
+<p id="p2"><q id="q2">0</q></p>
+
+<script type="text/javascript">
+ document.body.offsetWidth;
+ boom1();
+</script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003-ref.xht
new file mode 100644
index 0000000000..9f16a942ec
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003-ref.xht
@@ -0,0 +1,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>
+</head>
+<body>
+<div>Text</div>
+
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003a.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003a.xht
new file mode 100644
index 0000000000..e95c6f4814
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003a.xht
@@ -0,0 +1,23 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-dynamic-003-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div#x:first-letter { color: blue; float: left; }
+ </style>
+</head>
+<body>
+<div id="x">Need at least two letters here</div>
+<script type="text/javascript">
+ document.body.offsetWidth;
+ var div = document.getElementById("x");
+ div.id = "y";
+ div.firstChild.data = "Text";
+</script>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003b.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003b.xht
new file mode 100644
index 0000000000..2a3193271c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-dynamic-003b.xht
@@ -0,0 +1,23 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-dynamic-003-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div#x:first-letter { color: blue; float: none }
+ </style>
+</head>
+<body>
+<div id="x">x</div>
+<script type="text/javascript">
+ document.body.offsetWidth;
+ var div = document.getElementById("x");
+ div.id = "y";
+ div.firstChild.data = "Text";
+</script>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001-ref.xht
new file mode 100644
index 0000000000..771b1c8f81
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001-ref.xht
@@ -0,0 +1,10 @@
+<!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>
+<style type="text/css">
+div { float: left; overflow: scroll; font-size: 50px; width: 3em; line-height: 10px }
+div:first-letter { float: left; }
+</style>
+</head><body>
+<div>T<span style="font-size: 10px">his is text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div.</span></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001.xht
new file mode 100644
index 0000000000..82655938be
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-inherit-001.xht
@@ -0,0 +1,15 @@
+<!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: :first-letter</title>
+<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+<link rel="match" href="first-letter-inherit-001-ref.xht"/>
+<style type="text/css">
+div { float: left; overflow: scroll; font-size: 50px; width: 3em; line-height: 10px }
+div:first-letter { float: inherit; }
+</style>
+</head><body>
+<div>T<span style="font-size: 10px">his is text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div. Text in a div.</span></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001-ref.xht
new file mode 100644
index 0000000000..c237d01898
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001-ref.xht
@@ -0,0 +1,15 @@
+<!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>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ span#letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span>
+ <span id="letter">T</span>his is text
+ </span>
+ </div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001.xht
new file mode 100644
index 0000000000..805b7d5727
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-001.xht
@@ -0,0 +1,20 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span>
+ This is text
+ </span>
+ </div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-002.xht
new file mode 100644
index 0000000000..45c41ee000
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-002.xht
@@ -0,0 +1,25 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>This is more text
+ <span>
+ This is text
+ </span>
+ </div>
+ <script type="text/javascript">
+ document.body.offsetWidth;
+ document.getElementsByTagName("div")[0].firstChild.data = "";
+ </script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-003.xht
new file mode 100644
index 0000000000..bcdf10a919
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-003.xht
@@ -0,0 +1,25 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span>
+
+ </span>
+ </div>
+ <script type="text/javascript">
+ document.body.offsetWidth;
+ document.getElementsByTagName("span")[0].firstChild.data = "This is text";
+ </script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-004.xht
new file mode 100644
index 0000000000..7e59e77f1c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-004.xht
@@ -0,0 +1,26 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span>
+
+ </span>
+ </div>
+ <script type="text/javascript">
+ document.body.offsetWidth;
+ document.getElementsByTagName("span")[0].
+ appendChild(document.createTextNode("This is text"));
+ </script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-005.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-005.xht
new file mode 100644
index 0000000000..002b8b952d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-005.xht
@@ -0,0 +1,24 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span></span>
+ </div>
+ <script type="text/javascript">
+ document.body.offsetWidth;
+ document.getElementsByTagName("span")[0].
+ appendChild(document.createTextNode("This is text"));
+ </script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-006.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-006.xht
new file mode 100644
index 0000000000..00149f55b7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-006.xht
@@ -0,0 +1,21 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span> </span>
+ <span>
+ This is text
+ </span>
+ </div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-007.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-007.xht
new file mode 100644
index 0000000000..ffe4e25fa5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-nested-007.xht
@@ -0,0 +1,18 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Simon Montagu" href="http://smontagu.org/" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-nested-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; font-size: 3em; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>
+ <span>T</span>his is text
+ </div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001-ref.xht
new file mode 100644
index 0000000000..2bab5eb8f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0029;T&#x0029;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001.xht
new file mode 100644
index 0000000000..f0e1556767
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-001.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-001-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0029;T&#x0029;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002-ref.xht
new file mode 100644
index 0000000000..691c3aab67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x005D;T&#x005D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002.xht
new file mode 100644
index 0000000000..8d31e992f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-002.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-002-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x005D;T&#x005D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003-ref.xht
new file mode 100644
index 0000000000..f3d479ea44
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x007D;T&#x007D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003.xht
new file mode 100644
index 0000000000..f2f277f55c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-003.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-003-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x007D;T&#x007D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004-ref.xht
new file mode 100644
index 0000000000..b50f80c67a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark gug rtags gyas' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F3B;T&#x0F3B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004.xht
new file mode 100644
index 0000000000..480a1490c0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-004.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark gug rtags gyas' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-004-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark gug rtags gyas'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F3B;T&#x0F3B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005-ref.xht
new file mode 100644
index 0000000000..407b493c28
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark ang khang gyas' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F3D;T&#x0F3D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005.xht
new file mode 100644
index 0000000000..d8de466f4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-005.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark ang khang gyas' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-005-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark ang khang gyas'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F3D;T&#x0F3D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006-ref.xht
new file mode 100644
index 0000000000..12b29191e2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ogham reversed feather mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x169C;T&#x169C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006.xht
new file mode 100644
index 0000000000..0803ca207c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-006.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ogham reversed feather mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-006-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ogham reversed feather mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x169C;T&#x169C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007-ref.xht
new file mode 100644
index 0000000000..d331b791f4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right square bracket with quill' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2046;T&#x2046;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007.xht
new file mode 100644
index 0000000000..c4883ec8ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-007.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right square bracket with quill' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-007-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right square bracket with quill'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2046;T&#x2046;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008-ref.xht
new file mode 100644
index 0000000000..2b5166008a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'superscript right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x207E;T&#x207E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008.xht
new file mode 100644
index 0000000000..78792856be
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-008.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'superscript right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-008-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'superscript right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x207E;T&#x207E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009-ref.xht
new file mode 100644
index 0000000000..46f8876e42
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'subscript right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x208E;T&#x208E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009.xht
new file mode 100644
index 0000000000..366170f8ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-009.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'subscript right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-009-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'subscript right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x208E;T&#x208E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010-ref.xht
new file mode 100644
index 0000000000..47a7a4a7e5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right-pointing angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x232A;T&#x232A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010.xht
new file mode 100644
index 0000000000..03e2cffba6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-010.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right-pointing angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-010-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right-pointing angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x232A;T&#x232A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012-ref.xht
new file mode 100644
index 0000000000..27bea08308
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium right parenthesis ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2769;T&#x2769;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012.xht
new file mode 100644
index 0000000000..d4fcc96702
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-012.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium right parenthesis ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-012-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium right parenthesis ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2769;T&#x2769;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013-ref.xht
new file mode 100644
index 0000000000..15fd93850f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium flattened right parenthesis ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276B;T&#x276B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013.xht
new file mode 100644
index 0000000000..026a2aa240
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-013.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium flattened right parenthesis ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-013-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium flattened right parenthesis ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276B;T&#x276B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014-ref.xht
new file mode 100644
index 0000000000..e5b7a388cf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium right-pointing angle bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276D;T&#x276D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014.xht
new file mode 100644
index 0000000000..37e0d0d85e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-014.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium right-pointing angle bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-014-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium right-pointing angle bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276D;T&#x276D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015-ref.xht
new file mode 100644
index 0000000000..20e9471ba9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'heavy right-pointing angle quotation mark ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276F;T&#x276F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015.xht
new file mode 100644
index 0000000000..b0a697c1ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-015.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'heavy right-pointing angle quotation mark ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-015-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'heavy right-pointing angle quotation mark ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276F;T&#x276F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016-ref.xht
new file mode 100644
index 0000000000..04024347c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'heavy right-pointing angle bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2771;T&#x2771;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016.xht
new file mode 100644
index 0000000000..49d2ddea3c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-016.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'heavy right-pointing angle bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-016-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'heavy right-pointing angle bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2771;T&#x2771;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017-ref.xht
new file mode 100644
index 0000000000..7d597b671f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'light right tortoise shell bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2773;T&#x2773;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017.xht
new file mode 100644
index 0000000000..4426416ee7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-017.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'light right tortoise shell bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-017-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'light right tortoise shell bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2773;T&#x2773;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018-ref.xht
new file mode 100644
index 0000000000..05ba7a0823
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium right curly bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2775;T&#x2775;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018.xht
new file mode 100644
index 0000000000..47a038207d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-018.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium right curly bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-018-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium right curly bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2775;T&#x2775;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019-ref.xht
new file mode 100644
index 0000000000..819563d11f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right s-shaped bag delimiter' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27C6;T&#x27C6;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019.xht
new file mode 100644
index 0000000000..2ee11cfedc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-019.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right s-shaped bag delimiter' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-019-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right s-shaped bag delimiter'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27C6;T&#x27C6;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020-ref.xht
new file mode 100644
index 0000000000..fff25eebc1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical right white square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27E7;T&#x27E7;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020.xht
new file mode 100644
index 0000000000..97a56425be
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-020.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical right white square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-020-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical right white square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27E7;T&#x27E7;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021-ref.xht
new file mode 100644
index 0000000000..fc7cc3a355
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical right angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27E9;T&#x27E9;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021.xht
new file mode 100644
index 0000000000..494e5b6dd1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-021.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical right angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-021-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical right angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27E9;T&#x27E9;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022-ref.xht
new file mode 100644
index 0000000000..b810899001
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical right double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27EB;T&#x27EB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022.xht
new file mode 100644
index 0000000000..bf8e058407
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-022.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical right double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-022-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical right double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27EB;T&#x27EB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023-ref.xht
new file mode 100644
index 0000000000..1d2e5c2f93
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2984;T&#x2984;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023.xht
new file mode 100644
index 0000000000..25087ff0ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-023.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-023-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2984;T&#x2984;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024-ref.xht
new file mode 100644
index 0000000000..cf212563ec
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2986;T&#x2986;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024.xht
new file mode 100644
index 0000000000..9a4033da74
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-024.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-024-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2986;T&#x2986;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025-ref.xht
new file mode 100644
index 0000000000..de349a6c4b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'z notation right image bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2988;T&#x2988;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025.xht
new file mode 100644
index 0000000000..a8e3ee2615
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-025.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'z notation right image bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-025-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'z notation right image bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2988;T&#x2988;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026-ref.xht
new file mode 100644
index 0000000000..c5d653779c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'z notation right binding bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298A;T&#x298A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026.xht
new file mode 100644
index 0000000000..f22f680deb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-026.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'z notation right binding bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-026-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'z notation right binding bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298A;T&#x298A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027-ref.xht
new file mode 100644
index 0000000000..9401c357fb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right square bracket with underbar' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298C;T&#x298C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027.xht
new file mode 100644
index 0000000000..dfc042359d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-027.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right square bracket with underbar' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-027-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right square bracket with underbar'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298C;T&#x298C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028-ref.xht
new file mode 100644
index 0000000000..263bc61b6c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right square bracket with tick in bottom corner' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298E;T&#x298E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028.xht
new file mode 100644
index 0000000000..a15b9135f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-028.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right square bracket with tick in bottom corner' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-028-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right square bracket with tick in bottom corner'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298E;T&#x298E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029-ref.xht
new file mode 100644
index 0000000000..e59dbeee1e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right square bracket with tick in top corner' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2990;T&#x2990;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029.xht
new file mode 100644
index 0000000000..0dfa495d53
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-029.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right square bracket with tick in top corner' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-029-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right square bracket with tick in top corner'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2990;T&#x2990;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030-ref.xht
new file mode 100644
index 0000000000..b15777f5f2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right angle bracket with dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2992;T&#x2992;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030.xht
new file mode 100644
index 0000000000..2dd97315d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-030.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right angle bracket with dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-030-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right angle bracket with dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2992;T&#x2992;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031-ref.xht
new file mode 100644
index 0000000000..7e9d7b5239
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right arc greater-than bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2994;T&#x2994;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031.xht
new file mode 100644
index 0000000000..a7779c84c1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-031.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right arc greater-than bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-031-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right arc greater-than bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2994;T&#x2994;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032-ref.xht
new file mode 100644
index 0000000000..9c608565d6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double right arc less-than bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2996;T&#x2996;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032.xht
new file mode 100644
index 0000000000..f8107ba2ce
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-032.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double right arc less-than bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-032-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double right arc less-than bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2996;T&#x2996;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033-ref.xht
new file mode 100644
index 0000000000..52429c5906
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right black tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2998;T&#x2998;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033.xht
new file mode 100644
index 0000000000..6e4e69a083
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-033.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right black tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-033-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right black tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2998;T&#x2998;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034-ref.xht
new file mode 100644
index 0000000000..7892cd8fb4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right wiggly fence' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29D9;T&#x29D9;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034.xht
new file mode 100644
index 0000000000..32b2f4a413
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-034.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right wiggly fence' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-034-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right wiggly fence'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29D9;T&#x29D9;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035-ref.xht
new file mode 100644
index 0000000000..4cdb3c5458
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right double wiggly fence' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29DB;T&#x29DB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035.xht
new file mode 100644
index 0000000000..7ed901d475
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-035.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right double wiggly fence' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-035-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right double wiggly fence'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29DB;T&#x29DB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036-ref.xht
new file mode 100644
index 0000000000..d808221e29
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right-pointing curved angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29FD;T&#x29FD;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036.xht
new file mode 100644
index 0000000000..3af8a54767
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-036.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right-pointing curved angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-036-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right-pointing curved angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29FD;T&#x29FD;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037-ref.xht
new file mode 100644
index 0000000000..3f9b9db05b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3009;T&#x3009;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037.xht
new file mode 100644
index 0000000000..eaf49752e5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-037.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-037-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3009;T&#x3009;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038-ref.xht
new file mode 100644
index 0000000000..497b39d9ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300B;T&#x300B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038.xht
new file mode 100644
index 0000000000..40fac388f7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-038.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-038-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300B;T&#x300B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039-ref.xht
new file mode 100644
index 0000000000..1e421ee913
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300D;T&#x300D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039.xht
new file mode 100644
index 0000000000..3a4e3f496e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-039.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-039-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300D;T&#x300D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040-ref.xht
new file mode 100644
index 0000000000..29d62a48eb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300F;T&#x300F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040.xht
new file mode 100644
index 0000000000..31a10d66e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-040.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-040-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300F;T&#x300F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041-ref.xht
new file mode 100644
index 0000000000..6ef57328ed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right black lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3011;T&#x3011;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041.xht
new file mode 100644
index 0000000000..576cf6862a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-041.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right black lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-041-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right black lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3011;T&#x3011;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042-ref.xht
new file mode 100644
index 0000000000..fb15241882
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3015;T&#x3015;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042.xht
new file mode 100644
index 0000000000..2daa4fbfeb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-042.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-042-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3015;T&#x3015;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043-ref.xht
new file mode 100644
index 0000000000..ad9b749f52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3017;T&#x3017;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043.xht
new file mode 100644
index 0000000000..507bc4705c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-043.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-043-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3017;T&#x3017;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044-ref.xht
new file mode 100644
index 0000000000..77e9354a8c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3019;T&#x3019;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044.xht
new file mode 100644
index 0000000000..6ae40aa3de
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-044.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-044-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3019;T&#x3019;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045-ref.xht
new file mode 100644
index 0000000000..d57ca76a73
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right white square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x301B;T&#x301B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045.xht
new file mode 100644
index 0000000000..3c9f295b0c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-045.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right white square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-045-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right white square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x301B;T&#x301B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046-ref.xht
new file mode 100644
index 0000000000..f13732c14c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double prime quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x301E;T&#x301E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046.xht
new file mode 100644
index 0000000000..f041501af5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-046.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double prime quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-046-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double prime quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x301E;T&#x301E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047-ref.xht
new file mode 100644
index 0000000000..efe5af213c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'low double prime quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x301F;T&#x301F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047.xht
new file mode 100644
index 0000000000..0b71f70992
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-047.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'low double prime quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-047-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'low double prime quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x301F;T&#x301F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048-ref.xht
new file mode 100644
index 0000000000..85fc1860d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ornate right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFD3F;T&#xFD3F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048.xht
new file mode 100644
index 0000000000..f7d1425bc8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-048.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ornate right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-048-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ornate right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFD3F;T&#xFD3F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049-ref.xht
new file mode 100644
index 0000000000..3e58ed9c2c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right white lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE18;T&#xFE18;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049.xht
new file mode 100644
index 0000000000..d1eb52f122
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-049.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right white lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-049-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right white lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE18;T&#xFE18;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050-ref.xht
new file mode 100644
index 0000000000..9785b75d1d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE36;T&#xFE36;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050.xht
new file mode 100644
index 0000000000..e2f387f37b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-050.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-050-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE36;T&#xFE36;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051-ref.xht
new file mode 100644
index 0000000000..2c5160bf51
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE38;T&#xFE38;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051.xht
new file mode 100644
index 0000000000..41d1975007
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-051.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-051-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE38;T&#xFE38;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052-ref.xht
new file mode 100644
index 0000000000..bdadf8e46e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3A;T&#xFE3A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052.xht
new file mode 100644
index 0000000000..08a2fcdb65
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-052.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-052-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3A;T&#xFE3A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053-ref.xht
new file mode 100644
index 0000000000..bb7a8fd1e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right black lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3C;T&#xFE3C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053.xht
new file mode 100644
index 0000000000..78b78861d8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-053.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right black lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-053-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right black lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3C;T&#xFE3C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054-ref.xht
new file mode 100644
index 0000000000..60ce89ebb7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3E;T&#xFE3E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054.xht
new file mode 100644
index 0000000000..4d2abfa430
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-054.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-054-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3E;T&#xFE3E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055-ref.xht
new file mode 100644
index 0000000000..f11683a040
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE40;T&#xFE40;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055.xht
new file mode 100644
index 0000000000..c4e6ed3811
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-055.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-055-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE40;T&#xFE40;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056-ref.xht
new file mode 100644
index 0000000000..46811cda8a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE42;T&#xFE42;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056.xht
new file mode 100644
index 0000000000..00f91a84c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-056.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-056-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE42;T&#xFE42;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057-ref.xht
new file mode 100644
index 0000000000..61e27f64f4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right white corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE44;T&#xFE44;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057.xht
new file mode 100644
index 0000000000..f9705a0857
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-057.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right white corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-057-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right white corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE44;T&#xFE44;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058-ref.xht
new file mode 100644
index 0000000000..91913f7cf7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical right square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE48;T&#xFE48;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058.xht
new file mode 100644
index 0000000000..de40bf1d3a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-058.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical right square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-058-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical right square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE48;T&#xFE48;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059-ref.xht
new file mode 100644
index 0000000000..997e2ecb93
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5A;T&#xFE5A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059.xht
new file mode 100644
index 0000000000..c9c8a6f281
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-059.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-059-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5A;T&#xFE5A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060-ref.xht
new file mode 100644
index 0000000000..28428fbf45
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small right curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5C;T&#xFE5C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060.xht
new file mode 100644
index 0000000000..d0d0554616
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-060.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small right curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-060-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small right curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5C;T&#xFE5C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061-ref.xht
new file mode 100644
index 0000000000..471f373db8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small right tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5E;T&#xFE5E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061.xht
new file mode 100644
index 0000000000..862f19196e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-061.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small right tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-061-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small right tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5E;T&#xFE5E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062-ref.xht
new file mode 100644
index 0000000000..d4fc1c8983
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth right parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF09;T&#xFF09;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062.xht
new file mode 100644
index 0000000000..9bb80cc74b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-062.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth right parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-062-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth right parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF09;T&#xFF09;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063-ref.xht
new file mode 100644
index 0000000000..516dadde42
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth right square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF3D;T&#xFF3D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063.xht
new file mode 100644
index 0000000000..09ec1aa24c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-063.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth right square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-063-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth right square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF3D;T&#xFF3D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064-ref.xht
new file mode 100644
index 0000000000..0b871b1741
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth right curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF5D;T&#xFF5D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064.xht
new file mode 100644
index 0000000000..c391064051
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-064.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth right curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-064-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth right curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF5D;T&#xFF5D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065-ref.xht
new file mode 100644
index 0000000000..ff10d43650
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth right white parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF60;T&#xFF60;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065.xht
new file mode 100644
index 0000000000..0a7ac3ef64
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-065.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth right white parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-065-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth right white parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF60;T&#xFF60;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066-ref.xht
new file mode 100644
index 0000000000..d3ed890676
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'halfwidth right corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF63;T&#xFF63;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066.xht
new file mode 100644
index 0000000000..33357b11f6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-066.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'halfwidth right corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-066-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'halfwidth right corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF63;T&#xFF63;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067-ref.xht
new file mode 100644
index 0000000000..e1992dc644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right-pointing double angle quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x00BB;T&#x00BB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067.xht
new file mode 100644
index 0000000000..4c656197b8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-067.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right-pointing double angle quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-067-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right-pointing double angle quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x00BB;T&#x00BB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068-ref.xht
new file mode 100644
index 0000000000..65e3c11bb0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right single quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2019;T&#x2019;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068.xht
new file mode 100644
index 0000000000..c24a96d519
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-068.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right single quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-068-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right single quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2019;T&#x2019;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069-ref.xht
new file mode 100644
index 0000000000..e91ed887b0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right double quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201D;T&#x201D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069.xht
new file mode 100644
index 0000000000..faabd378d0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-069.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right double quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-069-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right double quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201D;T&#x201D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070-ref.xht
new file mode 100644
index 0000000000..af957b156e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'single right-pointing angle quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x203A;T&#x203A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070.xht
new file mode 100644
index 0000000000..9c5f791ca5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-070.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'single right-pointing angle quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-070-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'single right-pointing angle quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x203A;T&#x203A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071-ref.xht
new file mode 100644
index 0000000000..18d1276f14
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right substitution bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E03;T&#x2E03;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071.xht
new file mode 100644
index 0000000000..045e338a59
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-071.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right substitution bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-071-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right substitution bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E03;T&#x2E03;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072-ref.xht
new file mode 100644
index 0000000000..c4efee69d1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right dotted substitution bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E05;T&#x2E05;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072.xht
new file mode 100644
index 0000000000..45fbdab289
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-072.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right dotted substitution bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-072-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right dotted substitution bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E05;T&#x2E05;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073-ref.xht
new file mode 100644
index 0000000000..7f7af08bdd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right transposition bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0A;T&#x2E0A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073.xht
new file mode 100644
index 0000000000..282693a9bf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-073.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right transposition bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-073-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right transposition bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0A;T&#x2E0A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074-ref.xht
new file mode 100644
index 0000000000..7ea057a11e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right raised omission bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0D;T&#x2E0D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074.xht
new file mode 100644
index 0000000000..7f8f41d26a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-074.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right raised omission bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-074-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right raised omission bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0D;T&#x2E0D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075-ref.xht
new file mode 100644
index 0000000000..63947e4269
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right low paraphrase bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E1D;T&#x2E1D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075.xht
new file mode 100644
index 0000000000..261acb410a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-075.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right low paraphrase bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-075-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right low paraphrase bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E1D;T&#x2E1D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076-ref.xht
new file mode 100644
index 0000000000..7842da2bff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left-pointing double angle quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x00AB;T&#x00AB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076.xht
new file mode 100644
index 0000000000..cbd9d0008b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-076.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left-pointing double angle quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-076-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left-pointing double angle quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x00AB;T&#x00AB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077-ref.xht
new file mode 100644
index 0000000000..54adeab230
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left single quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2018;T&#x2018;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077.xht
new file mode 100644
index 0000000000..3d4f7f9232
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-077.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left single quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-077-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left single quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2018;T&#x2018;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078-ref.xht
new file mode 100644
index 0000000000..ddf3ee0e13
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'single high-reversed-9 quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201B;T&#x201B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078.xht
new file mode 100644
index 0000000000..03371a8230
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-078.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'single high-reversed-9 quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-078-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'single high-reversed-9 quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201B;T&#x201B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079-ref.xht
new file mode 100644
index 0000000000..e8907c48a2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left double quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201C;T&#x201C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079.xht
new file mode 100644
index 0000000000..f1ec8ad86f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-079.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left double quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-079-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left double quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201C;T&#x201C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080-ref.xht
new file mode 100644
index 0000000000..e8cb0ba540
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double high-reversed-9 quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201F;T&#x201F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080.xht
new file mode 100644
index 0000000000..eeca4c8607
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-080.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double high-reversed-9 quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-080-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double high-reversed-9 quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201F;T&#x201F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081-ref.xht
new file mode 100644
index 0000000000..56f92ae907
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'single left-pointing angle quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2039;T&#x2039;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081.xht
new file mode 100644
index 0000000000..88e61df5b4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-081.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'single left-pointing angle quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-081-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'single left-pointing angle quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2039;T&#x2039;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082-ref.xht
new file mode 100644
index 0000000000..6662c2d66a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left substitution bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E02;T&#x2E02;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082.xht
new file mode 100644
index 0000000000..f77f4584d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-082.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left substitution bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-082-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left substitution bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E02;T&#x2E02;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083-ref.xht
new file mode 100644
index 0000000000..4645d19459
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left dotted substitution bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E04;T&#x2E04;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083.xht
new file mode 100644
index 0000000000..e21a9d4c27
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-083.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left dotted substitution bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-083-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left dotted substitution bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E04;T&#x2E04;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084-ref.xht
new file mode 100644
index 0000000000..22f6268e40
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left transposition bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E09;T&#x2E09;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084.xht
new file mode 100644
index 0000000000..022b0a6039
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-084.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left transposition bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-084-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left transposition bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E09;T&#x2E09;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085-ref.xht
new file mode 100644
index 0000000000..3af7796262
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left raised omission bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0C;T&#x2E0C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085.xht
new file mode 100644
index 0000000000..243a451459
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-085.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left raised omission bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-085-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left raised omission bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0C;T&#x2E0C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086-ref.xht
new file mode 100644
index 0000000000..8f0a018388
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left low paraphrase bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E1C;T&#x2E1C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086.xht
new file mode 100644
index 0000000000..6b70b17da8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-086.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left low paraphrase bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-086-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left low paraphrase bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E1C;T&#x2E1C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087-ref.xht
new file mode 100644
index 0000000000..79193ec1d0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0021;T&#x0021;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087.xht
new file mode 100644
index 0000000000..5f68505414
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-087.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-087-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0021;T&#x0021;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088-ref.xht
new file mode 100644
index 0000000000..b0ce20ecdf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0022;T&#x0022;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088.xht
new file mode 100644
index 0000000000..af0761bc28
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-088.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-088-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0022;T&#x0022;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089-ref.xht
new file mode 100644
index 0000000000..9bf3e6e516
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'number sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0023;T&#x0023;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089.xht
new file mode 100644
index 0000000000..d24d4ecf17
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-089.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'number sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-089-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'number sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0023;T&#x0023;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090-ref.xht
new file mode 100644
index 0000000000..61359595cf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'percent sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0025;T&#x0025;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090.xht
new file mode 100644
index 0000000000..a2bd9439dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-090.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'percent sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-090-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'percent sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0025;T&#x0025;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091-ref.xht
new file mode 100644
index 0000000000..22f25b8175
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ampersand' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0026;T&#x0026;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091.xht
new file mode 100644
index 0000000000..7ca2556d1a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-091.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ampersand' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-091-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ampersand'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0026;T&#x0026;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092-ref.xht
new file mode 100644
index 0000000000..7cc850d33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'apostrophe' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0027;T&#x0027;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092.xht
new file mode 100644
index 0000000000..331c605a92
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-092.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'apostrophe' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-092-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'apostrophe'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0027;T&#x0027;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093-ref.xht
new file mode 100644
index 0000000000..8bba61d8fb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'asterisk' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x002A;T&#x002A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093.xht
new file mode 100644
index 0000000000..a794c7650a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-093.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'asterisk' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-093-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'asterisk'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x002A;T&#x002A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094-ref.xht
new file mode 100644
index 0000000000..09cd2d9bb1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x002C;T&#x002C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094.xht
new file mode 100644
index 0000000000..a885b05a0d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-094.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-094-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x002C;T&#x002C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095-ref.xht
new file mode 100644
index 0000000000..3565942a0d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x002E;T&#x002E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095.xht
new file mode 100644
index 0000000000..ecbf1cb9ea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-095.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-095-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x002E;T&#x002E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096-ref.xht
new file mode 100644
index 0000000000..f3f2884b9c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'solidus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x002F;T&#x002F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096.xht
new file mode 100644
index 0000000000..c1e8a2efd3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-096.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'solidus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-096-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'solidus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x002F;T&#x002F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097-ref.xht
new file mode 100644
index 0000000000..50a0f483bc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x003A;T&#x003A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097.xht
new file mode 100644
index 0000000000..46561ae196
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-097.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-097-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x003A;T&#x003A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098-ref.xht
new file mode 100644
index 0000000000..263c5b5001
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x003B;T&#x003B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098.xht
new file mode 100644
index 0000000000..40dadf1db9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-098.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-098-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x003B;T&#x003B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099-ref.xht
new file mode 100644
index 0000000000..a4d32e3bc4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x003F;T&#x003F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099.xht
new file mode 100644
index 0000000000..6fa1d50751
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-099.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-099-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x003F;T&#x003F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100-ref.xht
new file mode 100644
index 0000000000..0072650597
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'commercial at' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0040;T&#x0040;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100.xht
new file mode 100644
index 0000000000..67b008c2b4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-100.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'commercial at' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-100-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'commercial at'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0040;T&#x0040;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101-ref.xht
new file mode 100644
index 0000000000..03b76b5431
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reverse solidus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x005C;T&#x005C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101.xht
new file mode 100644
index 0000000000..98084a511e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-101.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reverse solidus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-101-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reverse solidus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x005C;T&#x005C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102-ref.xht
new file mode 100644
index 0000000000..6e9fb0cc6f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'inverted exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x00A1;T&#x00A1;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102.xht
new file mode 100644
index 0000000000..5c806b6324
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-102.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'inverted exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-102-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'inverted exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x00A1;T&#x00A1;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103-ref.xht
new file mode 100644
index 0000000000..4de55ec68d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'middle dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x00B7;T&#x00B7;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103.xht
new file mode 100644
index 0000000000..7a0ede4de9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-103.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'middle dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-103-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'middle dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x00B7;T&#x00B7;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104-ref.xht
new file mode 100644
index 0000000000..1467df2e1c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'inverted question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x00BF;T&#x00BF;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104.xht
new file mode 100644
index 0000000000..3874e2b87e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-104.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'inverted question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-104-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'inverted question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x00BF;T&#x00BF;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105-ref.xht
new file mode 100644
index 0000000000..640176f335
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'greek question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x037E;T&#x037E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105.xht
new file mode 100644
index 0000000000..888e067e4c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-105.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'greek question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-105-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'greek question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x037E;T&#x037E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106-ref.xht
new file mode 100644
index 0000000000..f5ae3026ed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'greek ano teleia' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0387;T&#x0387;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106.xht
new file mode 100644
index 0000000000..c276ab864c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-106.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'greek ano teleia' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-106-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'greek ano teleia'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0387;T&#x0387;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107-ref.xht
new file mode 100644
index 0000000000..2c7d280ceb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian apostrophe' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055A;T&#x055A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107.xht
new file mode 100644
index 0000000000..0107976a44
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-107.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian apostrophe' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-107-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian apostrophe'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055A;T&#x055A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108-ref.xht
new file mode 100644
index 0000000000..d4c936b8b1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian emphasis mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055B;T&#x055B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108.xht
new file mode 100644
index 0000000000..e3660d543d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-108.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian emphasis mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-108-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian emphasis mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055B;T&#x055B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109-ref.xht
new file mode 100644
index 0000000000..ea2501b6aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055C;T&#x055C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109.xht
new file mode 100644
index 0000000000..ccaf207ebf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-109.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-109-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055C;T&#x055C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110-ref.xht
new file mode 100644
index 0000000000..36db751f2b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055D;T&#x055D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110.xht
new file mode 100644
index 0000000000..0e5e444372
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-110.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-110-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055D;T&#x055D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111-ref.xht
new file mode 100644
index 0000000000..f5bb363412
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055E;T&#x055E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111.xht
new file mode 100644
index 0000000000..c0ca3c77a2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-111.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-111-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055E;T&#x055E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112-ref.xht
new file mode 100644
index 0000000000..46d706ac7b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian abbreviation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x055F;T&#x055F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112.xht
new file mode 100644
index 0000000000..7732fa9b5f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-112.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian abbreviation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-112-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian abbreviation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x055F;T&#x055F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113-ref.xht
new file mode 100644
index 0000000000..5c60f6d63d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'armenian full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0589;T&#x0589;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113.xht
new file mode 100644
index 0000000000..af307eeacc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-113.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'armenian full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-113-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'armenian full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0589;T&#x0589;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115-ref.xht
new file mode 100644
index 0000000000..50a35ca831
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hebrew punctuation paseq' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x05C0;T&#x05C0;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115.xht
new file mode 100644
index 0000000000..0d6d59b2f7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-115.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hebrew punctuation paseq' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-115-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hebrew punctuation paseq'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x05C0;T&#x05C0;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116-ref.xht
new file mode 100644
index 0000000000..1ae84bb6a3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hebrew punctuation sof pasuq' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x05C3;T&#x05C3;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116.xht
new file mode 100644
index 0000000000..a6efa89b3e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-116.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hebrew punctuation sof pasuq' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-116-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hebrew punctuation sof pasuq'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x05C3;T&#x05C3;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117-ref.xht
new file mode 100644
index 0000000000..0ab219f014
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hebrew punctuation nun hafukha' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x05C6;T&#x05C6;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117.xht
new file mode 100644
index 0000000000..1a7118ad40
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-117.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hebrew punctuation nun hafukha' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-117-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hebrew punctuation nun hafukha'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x05C6;T&#x05C6;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118-ref.xht
new file mode 100644
index 0000000000..eaad05bc83
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hebrew punctuation geresh' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x05F3;T&#x05F3;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118.xht
new file mode 100644
index 0000000000..57dab26646
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-118.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hebrew punctuation geresh' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-118-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hebrew punctuation geresh'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x05F3;T&#x05F3;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119-ref.xht
new file mode 100644
index 0000000000..fd90d8ff0b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hebrew punctuation gershayim' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x05F4;T&#x05F4;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119.xht
new file mode 100644
index 0000000000..7ab1a689ab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-119.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hebrew punctuation gershayim' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-119-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hebrew punctuation gershayim'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x05F4;T&#x05F4;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120-ref.xht
new file mode 100644
index 0000000000..810874f0aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x060C;T&#x060C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120.xht
new file mode 100644
index 0000000000..6913c4a92d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-120.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-120-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x060C;T&#x060C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121-ref.xht
new file mode 100644
index 0000000000..5eaa93668a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic date separator' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x060D;T&#x060D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121.xht
new file mode 100644
index 0000000000..578b0132dc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-121.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic date separator' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-121-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic date separator'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x060D;T&#x060D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122-ref.xht
new file mode 100644
index 0000000000..8a10f48c19
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x061B;T&#x061B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122.xht
new file mode 100644
index 0000000000..8fe7009128
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-122.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-122-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x061B;T&#x061B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123-ref.xht
new file mode 100644
index 0000000000..9ca77911f6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic triple dot punctuation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x061E;T&#x061E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123.xht
new file mode 100644
index 0000000000..a59cf3cd34
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-123.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic triple dot punctuation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-123-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic triple dot punctuation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x061E;T&#x061E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124-ref.xht
new file mode 100644
index 0000000000..69d364292a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x061F;T&#x061F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124.xht
new file mode 100644
index 0000000000..04ef93b8c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-124.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-124-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x061F;T&#x061F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125-ref.xht
new file mode 100644
index 0000000000..30e1e6a58f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic percent sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x066A;T&#x066A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125.xht
new file mode 100644
index 0000000000..363590757a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-125.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic percent sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-125-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic percent sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x066A;T&#x066A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126-ref.xht
new file mode 100644
index 0000000000..f4abc0508c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic decimal separator' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x066B;T&#x066B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126.xht
new file mode 100644
index 0000000000..ab82cc41fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-126.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic decimal separator' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-126-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic decimal separator'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x066B;T&#x066B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127-ref.xht
new file mode 100644
index 0000000000..9b617808cb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic thousands separator' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x066C;T&#x066C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127.xht
new file mode 100644
index 0000000000..13380a3da9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-127.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic thousands separator' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-127-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic thousands separator'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x066C;T&#x066C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128-ref.xht
new file mode 100644
index 0000000000..9d499c108b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic five pointed star' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x066D;T&#x066D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128.xht
new file mode 100644
index 0000000000..75aaa34e9e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-128.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic five pointed star' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-128-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic five pointed star'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x066D;T&#x066D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129-ref.xht
new file mode 100644
index 0000000000..67b2cd01f5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'arabic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x06D4;T&#x06D4;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129.xht
new file mode 100644
index 0000000000..6bcf5de48f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-129.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'arabic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-129-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'arabic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x06D4;T&#x06D4;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130-ref.xht
new file mode 100644
index 0000000000..ddaae42503
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac end of paragraph' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0700;T&#x0700;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130.xht
new file mode 100644
index 0000000000..83a383f4cc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-130.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac end of paragraph' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-130-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac end of paragraph'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0700;T&#x0700;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131-ref.xht
new file mode 100644
index 0000000000..35899129f0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac supralinear full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0701;T&#x0701;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131.xht
new file mode 100644
index 0000000000..d8356197c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-131.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac supralinear full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-131-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac supralinear full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0701;T&#x0701;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132-ref.xht
new file mode 100644
index 0000000000..a88635bcf7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac sublinear full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0702;T&#x0702;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132.xht
new file mode 100644
index 0000000000..d0c4375108
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-132.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac sublinear full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-132-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac sublinear full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0702;T&#x0702;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133-ref.xht
new file mode 100644
index 0000000000..5c84348543
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac supralinear colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0703;T&#x0703;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133.xht
new file mode 100644
index 0000000000..08c32232eb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-133.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac supralinear colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-133-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac supralinear colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0703;T&#x0703;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134-ref.xht
new file mode 100644
index 0000000000..e0ee738a23
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac sublinear colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0704;T&#x0704;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134.xht
new file mode 100644
index 0000000000..d3cda55a71
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-134.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac sublinear colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-134-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac sublinear colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0704;T&#x0704;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135-ref.xht
new file mode 100644
index 0000000000..1f9eba61c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac horizontal colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0705;T&#x0705;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135.xht
new file mode 100644
index 0000000000..b20831b781
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-135.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac horizontal colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-135-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac horizontal colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0705;T&#x0705;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136-ref.xht
new file mode 100644
index 0000000000..651fbed55e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac colon skewed left' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0706;T&#x0706;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136.xht
new file mode 100644
index 0000000000..a0b8736f97
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-136.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac colon skewed left' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-136-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac colon skewed left'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0706;T&#x0706;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137-ref.xht
new file mode 100644
index 0000000000..0288f582a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac colon skewed right' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0707;T&#x0707;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137.xht
new file mode 100644
index 0000000000..72d2a64e99
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-137.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac colon skewed right' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-137-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac colon skewed right'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0707;T&#x0707;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138-ref.xht
new file mode 100644
index 0000000000..6a1488b67b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac supralinear colon skewed left' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0708;T&#x0708;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138.xht
new file mode 100644
index 0000000000..fbe2133428
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-138.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac supralinear colon skewed left' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-138-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac supralinear colon skewed left'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0708;T&#x0708;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139-ref.xht
new file mode 100644
index 0000000000..a7529ede99
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac sublinear colon skewed right' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0709;T&#x0709;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139.xht
new file mode 100644
index 0000000000..9e9251f7ea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-139.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac sublinear colon skewed right' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-139-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac sublinear colon skewed right'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0709;T&#x0709;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140-ref.xht
new file mode 100644
index 0000000000..f17fbfdd50
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac contraction' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x070A;T&#x070A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140.xht
new file mode 100644
index 0000000000..daa1e0e408
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-140.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac contraction' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-140-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac contraction'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x070A;T&#x070A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141-ref.xht
new file mode 100644
index 0000000000..347b67dd34
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac harklean obelus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x070B;T&#x070B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141.xht
new file mode 100644
index 0000000000..1f5836953c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-141.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac harklean obelus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-141-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac harklean obelus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x070B;T&#x070B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142-ref.xht
new file mode 100644
index 0000000000..b3783821c0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac harklean metobelus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x070C;T&#x070C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142.xht
new file mode 100644
index 0000000000..500a722347
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-142.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac harklean metobelus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-142-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac harklean metobelus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x070C;T&#x070C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143-ref.xht
new file mode 100644
index 0000000000..3c96acb1ad
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'syriac harklean asteriscus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x070D;T&#x070D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143.xht
new file mode 100644
index 0000000000..4ca39fa923
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-143.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'syriac harklean asteriscus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-143-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'syriac harklean asteriscus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x070D;T&#x070D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144-ref.xht
new file mode 100644
index 0000000000..84940744c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'devanagari danda' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0964;T&#x0964;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144.xht
new file mode 100644
index 0000000000..ce1fea2282
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-144.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'devanagari danda' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-144-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'devanagari danda'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0964;T&#x0964;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145-ref.xht
new file mode 100644
index 0000000000..ba6c61b8fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'devanagari double danda' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0965;T&#x0965;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145.xht
new file mode 100644
index 0000000000..58697f042d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-145.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'devanagari double danda' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-145-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'devanagari double danda'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0965;T&#x0965;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146-ref.xht
new file mode 100644
index 0000000000..e340ae6725
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'devanagari abbreviation sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0970;T&#x0970;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146.xht
new file mode 100644
index 0000000000..73ebfb56c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-146.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'devanagari abbreviation sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-146-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'devanagari abbreviation sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0970;T&#x0970;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147-ref.xht
new file mode 100644
index 0000000000..e2df38b73b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'sinhala punctuation kunddaliya' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0DF4;T&#x0DF4;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147.xht
new file mode 100644
index 0000000000..cc79bcc814
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-147.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'sinhala punctuation kunddaliya' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-147-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'sinhala punctuation kunddaliya'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0DF4;T&#x0DF4;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148-ref.xht
new file mode 100644
index 0000000000..f54e4b8903
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'thai character fongman' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0E4F;T&#x0E4F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148.xht
new file mode 100644
index 0000000000..d3bb789276
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-148.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'thai character fongman' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-148-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'thai character fongman'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0E4F;T&#x0E4F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149-ref.xht
new file mode 100644
index 0000000000..89a94602ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'thai character angkhankhu' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0E5A;T&#x0E5A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149.xht
new file mode 100644
index 0000000000..c962cce2fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-149.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'thai character angkhankhu' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-149-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'thai character angkhankhu'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0E5A;T&#x0E5A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150-ref.xht
new file mode 100644
index 0000000000..1c04a0b48e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'thai character khomut' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0E5B;T&#x0E5B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150.xht
new file mode 100644
index 0000000000..51c772702c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-150.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'thai character khomut' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-150-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'thai character khomut'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0E5B;T&#x0E5B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151-ref.xht
new file mode 100644
index 0000000000..8454d7c17f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark initial yig mgo mdun ma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F04;T&#x0F04;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151.xht
new file mode 100644
index 0000000000..0019485ebe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-151.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark initial yig mgo mdun ma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-151-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark initial yig mgo mdun ma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F04;T&#x0F04;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152-ref.xht
new file mode 100644
index 0000000000..c50bafa32f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark closing yig mgo sgab ma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F05;T&#x0F05;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152.xht
new file mode 100644
index 0000000000..b79bd51dc6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-152.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark closing yig mgo sgab ma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-152-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark closing yig mgo sgab ma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F05;T&#x0F05;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153-ref.xht
new file mode 100644
index 0000000000..fa2a0339ef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark caret yig mgo phur shad ma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F06;T&#x0F06;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153.xht
new file mode 100644
index 0000000000..785791f50c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-153.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark caret yig mgo phur shad ma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-153-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark caret yig mgo phur shad ma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F06;T&#x0F06;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154-ref.xht
new file mode 100644
index 0000000000..fd7b26162d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark yig mgo tsheg shad ma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F07;T&#x0F07;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154.xht
new file mode 100644
index 0000000000..a77f5576ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-154.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark yig mgo tsheg shad ma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-154-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark yig mgo tsheg shad ma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F07;T&#x0F07;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155-ref.xht
new file mode 100644
index 0000000000..684c9fbc14
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark sbrul shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F08;T&#x0F08;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155.xht
new file mode 100644
index 0000000000..ec8fa7fdbf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-155.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark sbrul shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-155-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark sbrul shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F08;T&#x0F08;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156-ref.xht
new file mode 100644
index 0000000000..4621f774dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark bskur yig mgo' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F09;T&#x0F09;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156.xht
new file mode 100644
index 0000000000..d34fcc00c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-156.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark bskur yig mgo' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-156-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark bskur yig mgo'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F09;T&#x0F09;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157-ref.xht
new file mode 100644
index 0000000000..12fe686d77
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark bka- shog yig mgo' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0A;T&#x0F0A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157.xht
new file mode 100644
index 0000000000..76819db9ea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-157.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark bka- shog yig mgo' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-157-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark bka- shog yig mgo'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0A;T&#x0F0A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158-ref.xht
new file mode 100644
index 0000000000..89b77bf92a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark intersyllabic tsheg' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0B;T&#x0F0B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158.xht
new file mode 100644
index 0000000000..d2eb7cd20a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-158.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark intersyllabic tsheg' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-158-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark intersyllabic tsheg'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0B;T&#x0F0B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159-ref.xht
new file mode 100644
index 0000000000..58813ecef3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark delimiter tsheg bstar' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0C;T&#x0F0C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159.xht
new file mode 100644
index 0000000000..fc067d798c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-159.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark delimiter tsheg bstar' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-159-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark delimiter tsheg bstar'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0C;T&#x0F0C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160-ref.xht
new file mode 100644
index 0000000000..6638e995de
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0D;T&#x0F0D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160.xht
new file mode 100644
index 0000000000..8007ec0b4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-160.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-160-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0D;T&#x0F0D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161-ref.xht
new file mode 100644
index 0000000000..347e2ae9a9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark nyis shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0E;T&#x0F0E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161.xht
new file mode 100644
index 0000000000..c425a5df99
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-161.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark nyis shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-161-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark nyis shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0E;T&#x0F0E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162-ref.xht
new file mode 100644
index 0000000000..2d3428cd70
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark tsheg shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F0F;T&#x0F0F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162.xht
new file mode 100644
index 0000000000..ebd969ad7a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-162.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark tsheg shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-162-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark tsheg shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F0F;T&#x0F0F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163-ref.xht
new file mode 100644
index 0000000000..d494bab8d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark nyis tsheg shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F10;T&#x0F10;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163.xht
new file mode 100644
index 0000000000..ee671faf24
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-163.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark nyis tsheg shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-163-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark nyis tsheg shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F10;T&#x0F10;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164-ref.xht
new file mode 100644
index 0000000000..bc6c95aff4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark rin chen spungs shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F11;T&#x0F11;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164.xht
new file mode 100644
index 0000000000..9c017c2db3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-164.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark rin chen spungs shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-164-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark rin chen spungs shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F11;T&#x0F11;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165-ref.xht
new file mode 100644
index 0000000000..2a2e071289
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark rgya gram shad' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F12;T&#x0F12;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165.xht
new file mode 100644
index 0000000000..4a8f9de7ca
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-165.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark rgya gram shad' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-165-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark rgya gram shad'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F12;T&#x0F12;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166-ref.xht
new file mode 100644
index 0000000000..9ba8713a7b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark paluta' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F85;T&#x0F85;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166.xht
new file mode 100644
index 0000000000..17cb028f4a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-166.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark paluta' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-166-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark paluta'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F85;T&#x0F85;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167-ref.xht
new file mode 100644
index 0000000000..fec7f0b648
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark bska- shog gi mgo rgyan' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0FD0;T&#x0FD0;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167.xht
new file mode 100644
index 0000000000..2b976e7290
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-167.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark bska- shog gi mgo rgyan' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-167-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark bska- shog gi mgo rgyan'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0FD0;T&#x0FD0;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168-ref.xht
new file mode 100644
index 0000000000..f36114d493
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark mnyam yig gi mgo rgyan' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0FD1;T&#x0FD1;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168.xht
new file mode 100644
index 0000000000..d1a0365c23
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-168.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark mnyam yig gi mgo rgyan' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-168-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark mnyam yig gi mgo rgyan'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0FD1;T&#x0FD1;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169-ref.xht
new file mode 100644
index 0000000000..4eb1468037
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar sign little section' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104A;T&#x104A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169.xht
new file mode 100644
index 0000000000..a4a77a609d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-169.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar sign little section' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-169-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar sign little section'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104A;T&#x104A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170-ref.xht
new file mode 100644
index 0000000000..2b3319a258
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar sign section' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104B;T&#x104B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170.xht
new file mode 100644
index 0000000000..9027209c0c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-170.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar sign section' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-170-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar sign section'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104B;T&#x104B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171-ref.xht
new file mode 100644
index 0000000000..dc835e813e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar symbol locative' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104C;T&#x104C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171.xht
new file mode 100644
index 0000000000..3ae30066c7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-171.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar symbol locative' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-171-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar symbol locative'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104C;T&#x104C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172-ref.xht
new file mode 100644
index 0000000000..f1ca8da8a0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar symbol completed' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104D;T&#x104D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172.xht
new file mode 100644
index 0000000000..0e83553104
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-172.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar symbol completed' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-172-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar symbol completed'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104D;T&#x104D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173-ref.xht
new file mode 100644
index 0000000000..6e548c25fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar symbol aforementioned' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104E;T&#x104E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173.xht
new file mode 100644
index 0000000000..533f203a7a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-173.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar symbol aforementioned' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-173-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar symbol aforementioned'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104E;T&#x104E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174-ref.xht
new file mode 100644
index 0000000000..3d4a9897b9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'myanmar symbol genitive' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x104F;T&#x104F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174.xht
new file mode 100644
index 0000000000..0bd080fed5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-174.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'myanmar symbol genitive' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-174-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'myanmar symbol genitive'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x104F;T&#x104F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175-ref.xht
new file mode 100644
index 0000000000..8d05b3fc62
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'georgian paragraph separator' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10FB;T&#x10FB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175.xht
new file mode 100644
index 0000000000..23fb8524f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-175.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'georgian paragraph separator' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-175-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'georgian paragraph separator'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10FB;T&#x10FB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176-ref.xht
new file mode 100644
index 0000000000..9a2db100b0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic wordspace' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1361;T&#x1361;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176.xht
new file mode 100644
index 0000000000..1f1d7615c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-176.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic wordspace' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-176-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic wordspace'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1361;T&#x1361;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177-ref.xht
new file mode 100644
index 0000000000..10dd3e9a40
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1362;T&#x1362;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177.xht
new file mode 100644
index 0000000000..25df40858e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-177.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-177-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1362;T&#x1362;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178-ref.xht
new file mode 100644
index 0000000000..7bf1b2a633
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1363;T&#x1363;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178.xht
new file mode 100644
index 0000000000..55f34e02c0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-178.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-178-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1363;T&#x1363;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179-ref.xht
new file mode 100644
index 0000000000..51524d7804
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1364;T&#x1364;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179.xht
new file mode 100644
index 0000000000..81cc150512
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-179.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-179-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1364;T&#x1364;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180-ref.xht
new file mode 100644
index 0000000000..0fe0539777
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1365;T&#x1365;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180.xht
new file mode 100644
index 0000000000..cd02a730d0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-180.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-180-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1365;T&#x1365;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181-ref.xht
new file mode 100644
index 0000000000..4df0c33d63
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic preface colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1366;T&#x1366;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181.xht
new file mode 100644
index 0000000000..2216dea9bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-181.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic preface colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-181-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic preface colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1366;T&#x1366;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182-ref.xht
new file mode 100644
index 0000000000..b9e1fe78af
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1367;T&#x1367;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182.xht
new file mode 100644
index 0000000000..ded05f0f45
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-182.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-182-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1367;T&#x1367;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183-ref.xht
new file mode 100644
index 0000000000..2f5dafdacb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ethiopic paragraph separator' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1368;T&#x1368;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183.xht
new file mode 100644
index 0000000000..9737341ca9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-183.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ethiopic paragraph separator' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-183-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ethiopic paragraph separator'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1368;T&#x1368;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185-ref.xht
new file mode 100644
index 0000000000..eec0f360f4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'canadian syllabics full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x166E;T&#x166E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185.xht
new file mode 100644
index 0000000000..c323bdad34
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-185.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'canadian syllabics full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-185-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'canadian syllabics full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x166E;T&#x166E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186-ref.xht
new file mode 100644
index 0000000000..fbeeb7c454
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'runic single punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x16EB;T&#x16EB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186.xht
new file mode 100644
index 0000000000..3ec90eb3bc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-186.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'runic single punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-186-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'runic single punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x16EB;T&#x16EB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187-ref.xht
new file mode 100644
index 0000000000..4d135d6d81
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'runic multiple punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x16EC;T&#x16EC;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187.xht
new file mode 100644
index 0000000000..edaed04a93
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-187.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'runic multiple punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-187-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'runic multiple punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x16EC;T&#x16EC;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188-ref.xht
new file mode 100644
index 0000000000..4e5c4a4d93
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'runic cross punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x16ED;T&#x16ED;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188.xht
new file mode 100644
index 0000000000..a46c06751b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-188.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'runic cross punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-188-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'runic cross punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x16ED;T&#x16ED;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189-ref.xht
new file mode 100644
index 0000000000..d978ecc1eb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'philippine single punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1735;T&#x1735;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189.xht
new file mode 100644
index 0000000000..d9422cfac7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-189.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'philippine single punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-189-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'philippine single punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1735;T&#x1735;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190-ref.xht
new file mode 100644
index 0000000000..de9b01f3ab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'philippine double punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1736;T&#x1736;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190.xht
new file mode 100644
index 0000000000..a78c425857
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-190.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'philippine double punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-190-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'philippine double punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1736;T&#x1736;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191-ref.xht
new file mode 100644
index 0000000000..2bb0156d6c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign khan' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17D4;T&#x17D4;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191.xht
new file mode 100644
index 0000000000..f541ec8b99
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-191.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign khan' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-191-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign khan'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17D4;T&#x17D4;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192-ref.xht
new file mode 100644
index 0000000000..51181dbdfe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign bariyoosan' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17D5;T&#x17D5;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192.xht
new file mode 100644
index 0000000000..67d286bd47
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-192.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign bariyoosan' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-192-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign bariyoosan'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17D5;T&#x17D5;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193-ref.xht
new file mode 100644
index 0000000000..c26789149e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign camnuc pii kuuh' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17D6;T&#x17D6;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193.xht
new file mode 100644
index 0000000000..b9f495bba6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-193.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign camnuc pii kuuh' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-193-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign camnuc pii kuuh'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17D6;T&#x17D6;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194-ref.xht
new file mode 100644
index 0000000000..cbe8959f90
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign beyyal' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17D8;T&#x17D8;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194.xht
new file mode 100644
index 0000000000..8ee22c3acf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-194.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign beyyal' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-194-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign beyyal'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17D8;T&#x17D8;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195-ref.xht
new file mode 100644
index 0000000000..74087f721b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign phnaek muan' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17D9;T&#x17D9;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195.xht
new file mode 100644
index 0000000000..757995e5a3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-195.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign phnaek muan' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-195-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign phnaek muan'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17D9;T&#x17D9;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196-ref.xht
new file mode 100644
index 0000000000..a30454f792
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'khmer sign koomuut' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x17DA;T&#x17DA;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196.xht
new file mode 100644
index 0000000000..801ff35f53
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-196.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'khmer sign koomuut' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-196-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'khmer sign koomuut'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x17DA;T&#x17DA;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197-ref.xht
new file mode 100644
index 0000000000..bd8150e379
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian birga' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1800;T&#x1800;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197.xht
new file mode 100644
index 0000000000..c19e6329c1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-197.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian birga' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-197-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian birga'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1800;T&#x1800;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198-ref.xht
new file mode 100644
index 0000000000..b3a22bbd12
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian ellipsis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1801;T&#x1801;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198.xht
new file mode 100644
index 0000000000..6adddda4f0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-198.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian ellipsis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-198-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian ellipsis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1801;T&#x1801;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199-ref.xht
new file mode 100644
index 0000000000..c4c484eec1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1802;T&#x1802;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199.xht
new file mode 100644
index 0000000000..a0c680f738
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-199.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-199-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1802;T&#x1802;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200-ref.xht
new file mode 100644
index 0000000000..e5223b7771
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1803;T&#x1803;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200.xht
new file mode 100644
index 0000000000..533e4a3c3a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-200.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-200-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1803;T&#x1803;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201-ref.xht
new file mode 100644
index 0000000000..888ec1f547
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1804;T&#x1804;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201.xht
new file mode 100644
index 0000000000..ca2794acc5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-201.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-201-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1804;T&#x1804;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202-ref.xht
new file mode 100644
index 0000000000..87f2a5ab15
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian four dots' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1805;T&#x1805;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202.xht
new file mode 100644
index 0000000000..61716ba657
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-202.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian four dots' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-202-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian four dots'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1805;T&#x1805;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203-ref.xht
new file mode 100644
index 0000000000..72e11dd908
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian sibe syllable boundary marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1807;T&#x1807;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203.xht
new file mode 100644
index 0000000000..6cad0bf6ae
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-203.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian sibe syllable boundary marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-203-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian sibe syllable boundary marker'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1807;T&#x1807;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204-ref.xht
new file mode 100644
index 0000000000..7208b60a57
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian manchu comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1808;T&#x1808;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204.xht
new file mode 100644
index 0000000000..41c6496da8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-204.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian manchu comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-204-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian manchu comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1808;T&#x1808;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205-ref.xht
new file mode 100644
index 0000000000..31d46b5baa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian manchu full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1809;T&#x1809;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205.xht
new file mode 100644
index 0000000000..d317e679c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-205.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian manchu full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-205-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian manchu full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1809;T&#x1809;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206-ref.xht
new file mode 100644
index 0000000000..1c44dd9908
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mongolian nirugu' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x180A;T&#x180A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206.xht
new file mode 100644
index 0000000000..395312259e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-206.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mongolian nirugu' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-206-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mongolian nirugu'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x180A;T&#x180A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207-ref.xht
new file mode 100644
index 0000000000..c44869faf1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'limbu exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1944;T&#x1944;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207.xht
new file mode 100644
index 0000000000..7239783442
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-207.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'limbu exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-207-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'limbu exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1944;T&#x1944;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208-ref.xht
new file mode 100644
index 0000000000..90410c7ced
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'limbu question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1945;T&#x1945;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208.xht
new file mode 100644
index 0000000000..730553eeb8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-208.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'limbu question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-208-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'limbu question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1945;T&#x1945;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211-ref.xht
new file mode 100644
index 0000000000..d2d6131ec7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'buginese pallawa' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1A1E;T&#x1A1E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211.xht
new file mode 100644
index 0000000000..f6287942d4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-211.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'buginese pallawa' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-211-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'buginese pallawa'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1A1E;T&#x1A1E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212-ref.xht
new file mode 100644
index 0000000000..d7d00d4899
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'buginese end of section' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1A1F;T&#x1A1F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212.xht
new file mode 100644
index 0000000000..c294bc4e53
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-212.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'buginese end of section' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-212-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'buginese end of section'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1A1F;T&#x1A1F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213-ref.xht
new file mode 100644
index 0000000000..0ec826fd9e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double vertical line' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2016;T&#x2016;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213.xht
new file mode 100644
index 0000000000..cc599b5316
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-213.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double vertical line' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-213-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double vertical line'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2016;T&#x2016;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214-ref.xht
new file mode 100644
index 0000000000..a5686e2a30
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double low line' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2017;T&#x2017;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214.xht
new file mode 100644
index 0000000000..a800a8856f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-214.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double low line' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-214-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double low line'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2017;T&#x2017;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215-ref.xht
new file mode 100644
index 0000000000..040bb95e20
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dagger' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2020;T&#x2020;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215.xht
new file mode 100644
index 0000000000..bc192ec178
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-215.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dagger' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-215-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dagger'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2020;T&#x2020;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216-ref.xht
new file mode 100644
index 0000000000..9ed59f0692
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double dagger' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2021;T&#x2021;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216.xht
new file mode 100644
index 0000000000..888b1c61a5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-216.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double dagger' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-216-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double dagger'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2021;T&#x2021;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217-ref.xht
new file mode 100644
index 0000000000..17fe69c0ca
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'bullet' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2022;T&#x2022;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217.xht
new file mode 100644
index 0000000000..f7a097aa35
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-217.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'bullet' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-217-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'bullet'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2022;T&#x2022;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218-ref.xht
new file mode 100644
index 0000000000..1dac93c26f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'triangular bullet' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2023;T&#x2023;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218.xht
new file mode 100644
index 0000000000..e79b51e3be
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-218.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'triangular bullet' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-218-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'triangular bullet'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2023;T&#x2023;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219-ref.xht
new file mode 100644
index 0000000000..3212c3b28b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'one dot leader' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2024;T&#x2024;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219.xht
new file mode 100644
index 0000000000..7832e955a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-219.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'one dot leader' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-219-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'one dot leader'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2024;T&#x2024;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220-ref.xht
new file mode 100644
index 0000000000..7686f28700
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'two dot leader' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2025;T&#x2025;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220.xht
new file mode 100644
index 0000000000..9db8984d19
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-220.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'two dot leader' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-220-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'two dot leader'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2025;T&#x2025;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221-ref.xht
new file mode 100644
index 0000000000..8e61fbdc4d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'horizontal ellipsis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2026;T&#x2026;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221.xht
new file mode 100644
index 0000000000..6755c8c712
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-221.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'horizontal ellipsis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-221-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'horizontal ellipsis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2026;T&#x2026;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222-ref.xht
new file mode 100644
index 0000000000..21deff390b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hyphenation point' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2027;T&#x2027;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222.xht
new file mode 100644
index 0000000000..6a5e1a9113
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-222.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hyphenation point' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-222-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hyphenation point'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2027;T&#x2027;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223-ref.xht
new file mode 100644
index 0000000000..f27546eb4e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'per mille sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2030;T&#x2030;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223.xht
new file mode 100644
index 0000000000..b5896603d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-223.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'per mille sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-223-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'per mille sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2030;T&#x2030;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224-ref.xht
new file mode 100644
index 0000000000..f1773129e4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'per ten thousand sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2031;T&#x2031;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224.xht
new file mode 100644
index 0000000000..0b416dade9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-224.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'per ten thousand sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-224-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'per ten thousand sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2031;T&#x2031;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225-ref.xht
new file mode 100644
index 0000000000..5b0588b405
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2032;T&#x2032;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225.xht
new file mode 100644
index 0000000000..8a74c0be18
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-225.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-225-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2032;T&#x2032;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226-ref.xht
new file mode 100644
index 0000000000..fc1f3b804e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2033;T&#x2033;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226.xht
new file mode 100644
index 0000000000..5d11c03163
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-226.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-226-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2033;T&#x2033;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227-ref.xht
new file mode 100644
index 0000000000..97afceb2bf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'triple prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2034;T&#x2034;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227.xht
new file mode 100644
index 0000000000..3c1694e61c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-227.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'triple prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-227-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'triple prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2034;T&#x2034;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228-ref.xht
new file mode 100644
index 0000000000..4ae29dad49
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2035;T&#x2035;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228.xht
new file mode 100644
index 0000000000..4d97ee1318
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-228.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-228-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2035;T&#x2035;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229-ref.xht
new file mode 100644
index 0000000000..ff15884770
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed double prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2036;T&#x2036;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229.xht
new file mode 100644
index 0000000000..87431757aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-229.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed double prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-229-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed double prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2036;T&#x2036;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230-ref.xht
new file mode 100644
index 0000000000..4bbee33f66
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed triple prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2037;T&#x2037;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230.xht
new file mode 100644
index 0000000000..8999f8c8ae
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-230.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed triple prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-230-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed triple prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2037;T&#x2037;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231-ref.xht
new file mode 100644
index 0000000000..c9515afc2f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'caret' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2038;T&#x2038;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231.xht
new file mode 100644
index 0000000000..17f9e9943d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-231.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'caret' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-231-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection -'caret'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2038;T&#x2038;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232-ref.xht
new file mode 100644
index 0000000000..f174406008
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reference mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x203B;T&#x203B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232.xht
new file mode 100644
index 0000000000..81c4fc022a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-232.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reference mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-232-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reference mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x203B;T&#x203B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233-ref.xht
new file mode 100644
index 0000000000..9399000971
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x203C;T&#x203C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233.xht
new file mode 100644
index 0000000000..4ce526e03a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-233.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-233-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x203C;T&#x203C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234-ref.xht
new file mode 100644
index 0000000000..9590861324
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'interrobang' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x203D;T&#x203D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234.xht
new file mode 100644
index 0000000000..155a3dcf80
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-234.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'interrobang' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-234-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'interrobang'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x203D;T&#x203D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235-ref.xht
new file mode 100644
index 0000000000..b3cb6c311f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'overline' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x203E;T&#x203E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235.xht
new file mode 100644
index 0000000000..f98745c26a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-235.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'overline' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-235-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'overline'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x203E;T&#x203E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236-ref.xht
new file mode 100644
index 0000000000..828da82e3d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'caret insertion point' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2041;T&#x2041;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236.xht
new file mode 100644
index 0000000000..c7a5d095e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-236.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'caret insertion point' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-236-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'caret insertion point'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2041;T&#x2041;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237-ref.xht
new file mode 100644
index 0000000000..9158ccff2a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'asterism' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2042;T&#x2042;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237.xht
new file mode 100644
index 0000000000..b6dfaf919a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-237.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'asterism' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-237-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'asterism'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2042;T&#x2042;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238-ref.xht
new file mode 100644
index 0000000000..23a9c78b45
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hyphen bullet' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2043;T&#x2043;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238.xht
new file mode 100644
index 0000000000..183943184b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-238.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hyphen bullet' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-238-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hyphen bullet'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2043;T&#x2043;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239-ref.xht
new file mode 100644
index 0000000000..9ad6b727d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2047;T&#x2047;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239.xht
new file mode 100644
index 0000000000..1dd385ad9f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-239.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-239-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2047;T&#x2047;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240-ref.xht
new file mode 100644
index 0000000000..ce9086bdf6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'question exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2048;T&#x2048;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240.xht
new file mode 100644
index 0000000000..094d53b639
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-240.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'question exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-240-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'question exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2048;T&#x2048;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241-ref.xht
new file mode 100644
index 0000000000..2959baebd7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'exclamation question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2049;T&#x2049;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241.xht
new file mode 100644
index 0000000000..6b4f93c333
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-241.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'exclamation question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-241-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'exclamation question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2049;T&#x2049;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242-ref.xht
new file mode 100644
index 0000000000..66daedb9fe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tironian sign et' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204A;T&#x204A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242.xht
new file mode 100644
index 0000000000..fd793370cb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-242.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tironian sign et' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-242-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tironian sign et'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204A;T&#x204A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243-ref.xht
new file mode 100644
index 0000000000..83d2087ce9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed pilcrow sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204B;T&#x204B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243.xht
new file mode 100644
index 0000000000..5ef3263a4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-243.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed pilcrow sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-243-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed pilcrow sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204B;T&#x204B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244-ref.xht
new file mode 100644
index 0000000000..0b35c9805e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'black leftwards bullet' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204C;T&#x204C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244.xht
new file mode 100644
index 0000000000..259f63b373
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-244.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'black leftwards bullet' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-244-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'black leftwards bullet'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204C;T&#x204C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245-ref.xht
new file mode 100644
index 0000000000..60dc1e2598
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'black rightwards bullet' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204D;T&#x204D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245.xht
new file mode 100644
index 0000000000..e1ee03413e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-245.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'black rightwards bullet' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-245-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'black rightwards bullet'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204D;T&#x204D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246-ref.xht
new file mode 100644
index 0000000000..dfe6076250
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'low asterisk' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204E;T&#x204E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246.xht
new file mode 100644
index 0000000000..084141372e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-246.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'low asterisk' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-246-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'low asterisk'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204E;T&#x204E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247-ref.xht
new file mode 100644
index 0000000000..ccdc943db3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x204F;T&#x204F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247.xht
new file mode 100644
index 0000000000..a107da421d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-247.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-247-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x204F;T&#x204F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248-ref.xht
new file mode 100644
index 0000000000..e60216e665
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'close up' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2050;T&#x2050;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248.xht
new file mode 100644
index 0000000000..21183dedef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-248.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'close up' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-248-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'close up'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2050;T&#x2050;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249-ref.xht
new file mode 100644
index 0000000000..3242cdfdcb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'two asterisks aligned vertically' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2051;T&#x2051;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249.xht
new file mode 100644
index 0000000000..090a2f37c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-249.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'two asterisks aligned vertically' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-249-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'two asterisks aligned vertically'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2051;T&#x2051;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250-ref.xht
new file mode 100644
index 0000000000..7f80797889
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'swung dash' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2053;T&#x2053;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250.xht
new file mode 100644
index 0000000000..f60ae5f042
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-250.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'swung dash' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-250-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'swung dash'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2053;T&#x2053;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251-ref.xht
new file mode 100644
index 0000000000..35ea1b17b6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'flower punctuation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2055;T&#x2055;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251.xht
new file mode 100644
index 0000000000..3f8d7f96ab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-251.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'flower punctuation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-251-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'flower punctuation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2055;T&#x2055;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252-ref.xht
new file mode 100644
index 0000000000..149bfa31bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'three dot punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2056;T&#x2056;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252.xht
new file mode 100644
index 0000000000..3829286970
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-252.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'three dot punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-252-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'three dot punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2056;T&#x2056;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253-ref.xht
new file mode 100644
index 0000000000..57563ef6c4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'quadruple prime' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2057;T&#x2057;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253.xht
new file mode 100644
index 0000000000..14ad08d058
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-253.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'quadruple prime' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-253-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'quadruple prime'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2057;T&#x2057;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254-ref.xht
new file mode 100644
index 0000000000..9f8961990d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'four dot punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2058;T&#x2058;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254.xht
new file mode 100644
index 0000000000..308461c8d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-254.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'four dot punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-254-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'four dot punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2058;T&#x2058;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255-ref.xht
new file mode 100644
index 0000000000..e8a1fb0ee5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'five dot punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2059;T&#x2059;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255.xht
new file mode 100644
index 0000000000..481d15629d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-255.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'five dot punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-255-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'five dot punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2059;T&#x2059;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256-ref.xht
new file mode 100644
index 0000000000..a8470ab6a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'two dot punctuation' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x205A;T&#x205A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256.xht
new file mode 100644
index 0000000000..e71a9bd97d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-256.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'two dot punctuation' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-256-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'two dot punctuation'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x205A;T&#x205A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257-ref.xht
new file mode 100644
index 0000000000..7579b40b02
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'four dot mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x205B;T&#x205B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257.xht
new file mode 100644
index 0000000000..fdb65d46a2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-257.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'four dot mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-257-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'four dot mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x205B;T&#x205B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258-ref.xht
new file mode 100644
index 0000000000..e50653f798
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dotted cross' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x205C;T&#x205C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258.xht
new file mode 100644
index 0000000000..4d26067ac6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-258.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dotted cross' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-258-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dotted cross'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x205C;T&#x205C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259-ref.xht
new file mode 100644
index 0000000000..1432e04bcf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tricolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x205D;T&#x205D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259.xht
new file mode 100644
index 0000000000..ae7797d088
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-259.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tricolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-259-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tricolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x205D;T&#x205D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260-ref.xht
new file mode 100644
index 0000000000..bb3d596575
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'vertical four dots' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x205E;T&#x205E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260.xht
new file mode 100644
index 0000000000..310a15387a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-260.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'vertical four dots' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-260-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'vertical four dots'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x205E;T&#x205E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262-ref.xht
new file mode 100644
index 0000000000..bd20a02427
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic old nubian full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CF9;T&#x2CF9;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262.xht
new file mode 100644
index 0000000000..9bd1e25c33
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-262.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic old nubian full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-262-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic old nubian full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CF9;T&#x2CF9;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263-ref.xht
new file mode 100644
index 0000000000..b3a9f69941
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic old nubian direct question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CFA;T&#x2CFA;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263.xht
new file mode 100644
index 0000000000..01c746ac30
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-263.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic old nubian direct question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-263-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic old nubian direct question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CFA;T&#x2CFA;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264-ref.xht
new file mode 100644
index 0000000000..79dfb1702c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic old nubian indirect question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CFB;T&#x2CFB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264.xht
new file mode 100644
index 0000000000..6c2a9d9cc7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-264.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic old nubian indirect question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-264-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic old nubian indirect question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CFB;T&#x2CFB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265-ref.xht
new file mode 100644
index 0000000000..2751c7ef57
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic old nubian verse divider' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CFC;T&#x2CFC;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265.xht
new file mode 100644
index 0000000000..77f4c39eb8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-265.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic old nubian verse divider' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-265-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic old nubian verse divider'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CFC;T&#x2CFC;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266-ref.xht
new file mode 100644
index 0000000000..bcc0487b71
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CFE;T&#x2CFE;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266.xht
new file mode 100644
index 0000000000..fb00feeae8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-266.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-266-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CFE;T&#x2CFE;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267-ref.xht
new file mode 100644
index 0000000000..c2b85978ae
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'coptic morphological divider' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2CFF;T&#x2CFF;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267.xht
new file mode 100644
index 0000000000..5d88d5fa6d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-267.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'coptic morphological divider' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-267-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'coptic morphological divider'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2CFF;T&#x2CFF;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268-ref.xht
new file mode 100644
index 0000000000..3a62e991fe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right angle substitution marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E00;T&#x2E00;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268.xht
new file mode 100644
index 0000000000..6931ee661e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-268.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right angle substitution marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-268-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right angle substitution marker'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E00;T&#x2E00;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269-ref.xht
new file mode 100644
index 0000000000..cd93e2aed0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'right angle dotted substitution marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E01;T&#x2E01;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269.xht
new file mode 100644
index 0000000000..f81ecb012f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-269.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'right angle dotted substitution marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-269-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'right angle dotted substitution marker'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E01;T&#x2E01;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270-ref.xht
new file mode 100644
index 0000000000..b18e5389c7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'raised interpolation marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E06;T&#x2E06;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270.xht
new file mode 100644
index 0000000000..d48e743975
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-270.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'raised interpolation marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-270-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'raised interpolation marker'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E06;T&#x2E06;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271-ref.xht
new file mode 100644
index 0000000000..9d0462e2cd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'raised dotted interpolation marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E07;T&#x2E07;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271.xht
new file mode 100644
index 0000000000..6502f99fd6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-271.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'raised dotted interpolation marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-271-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'raised dotted interpolation marker' ." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E07;T&#x2E07;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272-ref.xht
new file mode 100644
index 0000000000..21a2ca1194
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dotted transposition marker' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E08;T&#x2E08;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272.xht
new file mode 100644
index 0000000000..7245140400
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-272.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dotted transposition marker' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-272-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dotted transposition marker'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E08;T&#x2E08;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273-ref.xht
new file mode 100644
index 0000000000..56e39c67ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'raised square' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0B;T&#x2E0B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273.xht
new file mode 100644
index 0000000000..34613d63db
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-273.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'raised square' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-273-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'raised square'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0B;T&#x2E0B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274-ref.xht
new file mode 100644
index 0000000000..3ed79906ab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'editorial coronis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0E;T&#x2E0E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274.xht
new file mode 100644
index 0000000000..e65a8b2550
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-274.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'editorial coronis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-274-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'editorial coronis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0E;T&#x2E0E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275-ref.xht
new file mode 100644
index 0000000000..28fd99a5ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'paragraphos' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E0F;T&#x2E0F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275.xht
new file mode 100644
index 0000000000..2a2d6b5315
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-275.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'paragraphos' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-275-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'paragraphos'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E0F;T&#x2E0F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276-ref.xht
new file mode 100644
index 0000000000..ab97466c65
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'forked paragraphos' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E10;T&#x2E10;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276.xht
new file mode 100644
index 0000000000..8c103e6569
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-276.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'forked paragraphos' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-276-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'forked paragraphos'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E10;T&#x2E10;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277-ref.xht
new file mode 100644
index 0000000000..f070f71df0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed forked paragraphos' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E11;T&#x2E11;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277.xht
new file mode 100644
index 0000000000..c0ee799f55
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-277.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed forked paragraphos' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-277-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed forked paragraphos'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E11;T&#x2E11;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278-ref.xht
new file mode 100644
index 0000000000..2a7cb69270
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'hypodiastole' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E12;T&#x2E12;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278.xht
new file mode 100644
index 0000000000..a252f1d4ed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-278.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'hypodiastole' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-278-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'hypodiastole'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E12;T&#x2E12;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279-ref.xht
new file mode 100644
index 0000000000..3bc712d016
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dotted obelos' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E13;T&#x2E13;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279.xht
new file mode 100644
index 0000000000..61616fb63b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-279.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dotted obelos' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-279-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dotted obelos'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E13;T&#x2E13;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280-ref.xht
new file mode 100644
index 0000000000..247e7e12d2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'downwards ancora' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E14;T&#x2E14;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280.xht
new file mode 100644
index 0000000000..55fe2d889d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-280.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'downwards ancora' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-280-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'downwards ancora'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E14;T&#x2E14;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281-ref.xht
new file mode 100644
index 0000000000..3e95d04c67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'upwards ancora' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E15;T&#x2E15;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281.xht
new file mode 100644
index 0000000000..554ace3d22
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-281.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'upwards ancora' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-281-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'upwards ancora'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E15;T&#x2E15;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282-ref.xht
new file mode 100644
index 0000000000..02898fa29f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dotted right-pointing angle' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2E16;T&#x2E16;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282.xht
new file mode 100644
index 0000000000..313dc815e4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-282.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dotted right-pointing angle' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-282-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dotted right-pointing angle'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2E16;T&#x2E16;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283-ref.xht
new file mode 100644
index 0000000000..9b80b4dcf8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ideographic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3001;T&#x3001;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283.xht
new file mode 100644
index 0000000000..3e97d12383
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-283.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ideographic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-283-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ideographic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3001;T&#x3001;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284-ref.xht
new file mode 100644
index 0000000000..84f9db67f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ideographic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3002;T&#x3002;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284.xht
new file mode 100644
index 0000000000..af94a947ef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-284.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ideographic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-284-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ideographic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3002;T&#x3002;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285-ref.xht
new file mode 100644
index 0000000000..1f647339fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ditto mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3003;T&#x3003;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285.xht
new file mode 100644
index 0000000000..a50445f2bd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-285.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ditto mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-285-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ditto mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3003;T&#x3003;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286-ref.xht
new file mode 100644
index 0000000000..ea7db02426
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'part alternation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x303D;T&#x303D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286.xht
new file mode 100644
index 0000000000..b42dd7ecb7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-286.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'part alternation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-286-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'part alternation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x303D;T&#x303D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287-ref.xht
new file mode 100644
index 0000000000..26d59b5198
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'katakana middle dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x30FB;T&#x30FB;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287.xht
new file mode 100644
index 0000000000..e39622b0fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-287.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'katakana middle dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-287-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'katakana middle dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x30FB;T&#x30FB;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288-ref.xht
new file mode 100644
index 0000000000..c1ae7dc661
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE10;T&#xFE10;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288.xht
new file mode 100644
index 0000000000..e6f8cc888b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-288.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-288-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE10;T&#xFE10;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289-ref.xht
new file mode 100644
index 0000000000..222d949bad
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical ideographic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE11;T&#xFE11;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289.xht
new file mode 100644
index 0000000000..2c791234f2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-289.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical ideographic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-289-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical ideographic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE11;T&#xFE11;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290-ref.xht
new file mode 100644
index 0000000000..9a49559afa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical ideographic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE12;T&#xFE12;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290.xht
new file mode 100644
index 0000000000..cd09f4a15d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-290.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical ideographic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-290-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical ideographic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE12;T&#xFE12;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291-ref.xht
new file mode 100644
index 0000000000..0a59cfb699
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE13;T&#xFE13;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291.xht
new file mode 100644
index 0000000000..a41dde93a1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-291.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-291-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE13;T&#xFE13;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292-ref.xht
new file mode 100644
index 0000000000..3689827e33
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE14;T&#xFE14;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292.xht
new file mode 100644
index 0000000000..37b1049a77
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-292.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-292-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE14;T&#xFE14;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293-ref.xht
new file mode 100644
index 0000000000..85fa526e99
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE15;T&#xFE15;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293.xht
new file mode 100644
index 0000000000..eafae0e8c4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-293.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-293-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE15;T&#xFE15;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294-ref.xht
new file mode 100644
index 0000000000..a5501134d6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE16;T&#xFE16;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294.xht
new file mode 100644
index 0000000000..fc05320b64
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-294.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-294-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE16;T&#xFE16;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295-ref.xht
new file mode 100644
index 0000000000..a47f71cbe3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical horizontal ellipsis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE19;T&#xFE19;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295.xht
new file mode 100644
index 0000000000..e991bd5ba4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-295.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical horizontal ellipsis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-295-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical horizontal ellipsis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE19;T&#xFE19;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296-ref.xht
new file mode 100644
index 0000000000..93f5c0c4b9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical two dot leader' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE30;T&#xFE30;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296.xht
new file mode 100644
index 0000000000..50ceb95114
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-296.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical two dot leader' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-296-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical two dot leader'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE30;T&#xFE30;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297-ref.xht
new file mode 100644
index 0000000000..f4599da4b1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'sesame dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE45;T&#xFE45;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297.xht
new file mode 100644
index 0000000000..a222612abb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-297.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'sesame dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-297-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'sesame dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE45;T&#xFE45;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298-ref.xht
new file mode 100644
index 0000000000..5aa88603d6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'white sesame dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE46;T&#xFE46;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298.xht
new file mode 100644
index 0000000000..52f71e1d37
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-298.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'white sesame dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-298-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'white sesame dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE46;T&#xFE46;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299-ref.xht
new file mode 100644
index 0000000000..27e7d9472c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'dashed overline' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE49;T&#xFE49;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299.xht
new file mode 100644
index 0000000000..0a251b6a67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-299.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'dashed overline' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-299-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'dashed overline'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE49;T&#xFE49;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300-ref.xht
new file mode 100644
index 0000000000..8d9a702894
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'centreline overline' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE4A;T&#xFE4A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300.xht
new file mode 100644
index 0000000000..34cdbdd636
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-300.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'centreline overline' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-300-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'centreline overline'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE4A;T&#xFE4A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301-ref.xht
new file mode 100644
index 0000000000..f92b2335d3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'wavy overline' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE4B;T&#xFE4B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301.xht
new file mode 100644
index 0000000000..c54b7608c0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-301.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'wavy overline' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-301-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'wavy overline'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE4B;T&#xFE4B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302-ref.xht
new file mode 100644
index 0000000000..4409bdc63d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double wavy overline' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE4C;T&#xFE4C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302.xht
new file mode 100644
index 0000000000..502dc62683
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-302.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double wavy overline' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-302-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double wavy overline'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE4C;T&#xFE4C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303-ref.xht
new file mode 100644
index 0000000000..abd04b5d4c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE50;T&#xFE50;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303.xht
new file mode 100644
index 0000000000..7a2594ca51
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-303.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-303-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE50;T&#xFE50;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304-ref.xht
new file mode 100644
index 0000000000..d774e12df2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small ideographic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE51;T&#xFE51;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304.xht
new file mode 100644
index 0000000000..8cffacea65
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-304.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small ideographic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-304-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small ideographic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE51;T&#xFE51;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305-ref.xht
new file mode 100644
index 0000000000..06bf20c0ce
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE52;T&#xFE52;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305.xht
new file mode 100644
index 0000000000..f320f84a0c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-305.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-305-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE52;T&#xFE52;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306-ref.xht
new file mode 100644
index 0000000000..8309c5cb78
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE54;T&#xFE54;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306.xht
new file mode 100644
index 0000000000..b5c8858dfb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-306.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-306-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE54;T&#xFE54;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307-ref.xht
new file mode 100644
index 0000000000..76792a7e42
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE55;T&#xFE55;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307.xht
new file mode 100644
index 0000000000..96a7fbe614
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-307.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-307-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE55;T&#xFE55;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308-ref.xht
new file mode 100644
index 0000000000..d23da0df4c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE56;T&#xFE56;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308.xht
new file mode 100644
index 0000000000..a37e3a8378
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-308.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-308-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE56;T&#xFE56;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309-ref.xht
new file mode 100644
index 0000000000..79b0b85f73
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE57;T&#xFE57;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309.xht
new file mode 100644
index 0000000000..bf96de8708
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-309.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-309-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE57;T&#xFE57;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310-ref.xht
new file mode 100644
index 0000000000..257007636f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small number sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5F;T&#xFE5F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310.xht
new file mode 100644
index 0000000000..564eabc277
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-310.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small number sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-310-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small number sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5F;T&#xFE5F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311-ref.xht
new file mode 100644
index 0000000000..c4155ddc02
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small ampersand' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE60;T&#xFE60;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311.xht
new file mode 100644
index 0000000000..d9fa1c68dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-311.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small ampersand' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-311-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small ampersand'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE60;T&#xFE60;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312-ref.xht
new file mode 100644
index 0000000000..7c882cb058
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small asterisk' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE61;T&#xFE61;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312.xht
new file mode 100644
index 0000000000..18f92bdb80
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-312.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small asterisk' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-312-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small asterisk'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE61;T&#xFE61;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313-ref.xht
new file mode 100644
index 0000000000..5efc62eeb2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small reverse solidus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE68;T&#xFE68;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313.xht
new file mode 100644
index 0000000000..6a24f52147
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-313.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small reverse solidus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-313-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small reverse solidus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE68;T&#xFE68;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314-ref.xht
new file mode 100644
index 0000000000..3f6bcf5109
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small percent sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE6A;T&#xFE6A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314.xht
new file mode 100644
index 0000000000..c4d9dd93ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-314.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small percent sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-314-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small percent sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE6A;T&#xFE6A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315-ref.xht
new file mode 100644
index 0000000000..2ab07e80af
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small commercial at' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE6B;T&#xFE6B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315.xht
new file mode 100644
index 0000000000..ad8d8f9bdd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-315.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small commercial at' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-315-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small commercial at'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE6B;T&#xFE6B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316-ref.xht
new file mode 100644
index 0000000000..ae00f782ce
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth exclamation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF01;T&#xFF01;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316.xht
new file mode 100644
index 0000000000..4e18c69019
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-316.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth exclamation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-316-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth exclamation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF01;T&#xFF01;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317-ref.xht
new file mode 100644
index 0000000000..187bdfb91e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF02;T&#xFF02;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317.xht
new file mode 100644
index 0000000000..87ce4b77ed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-317.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-317-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF02;T&#xFF02;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318-ref.xht
new file mode 100644
index 0000000000..72989ae07d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth number sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF03;T&#xFF03;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318.xht
new file mode 100644
index 0000000000..92eddd6490
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-318.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth number sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-318-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth number sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF03;T&#xFF03;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319-ref.xht
new file mode 100644
index 0000000000..db7ba02a2f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth percent sign' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF05;T&#xFF05;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319.xht
new file mode 100644
index 0000000000..14c6b6f210
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-319.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth percent sign' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-319-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth percent sign'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF05;T&#xFF05;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320-ref.xht
new file mode 100644
index 0000000000..daf74fec94
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth ampersand' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF06;T&#xFF06;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320.xht
new file mode 100644
index 0000000000..99082e1d32
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-320.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth ampersand' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-320-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth ampersand'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF06;T&#xFF06;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321-ref.xht
new file mode 100644
index 0000000000..df99bb25e2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth apostrophe' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF07;T&#xFF07;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321.xht
new file mode 100644
index 0000000000..a48360eb58
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-321.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth apostrophe' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-321-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth apostrophe'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF07;T&#xFF07;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322-ref.xht
new file mode 100644
index 0000000000..d8291bcabe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth asterisk' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF0A;T&#xFF0A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322.xht
new file mode 100644
index 0000000000..6c6eec2ccf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-322.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth asterisk' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-322-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth asterisk'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF0A;T&#xFF0A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323-ref.xht
new file mode 100644
index 0000000000..fa9e29337a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF0C;T&#xFF0C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323.xht
new file mode 100644
index 0000000000..760908784b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-323.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-323-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF0C;T&#xFF0C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324-ref.xht
new file mode 100644
index 0000000000..78a297b1fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF0E;T&#xFF0E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324.xht
new file mode 100644
index 0000000000..08c2009377
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-324.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-324-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF0E;T&#xFF0E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325-ref.xht
new file mode 100644
index 0000000000..3803101b61
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth solidus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF0F;T&#xFF0F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325.xht
new file mode 100644
index 0000000000..43aab76501
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-325.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth solidus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-325-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth solidus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF0F;T&#xFF0F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326-ref.xht
new file mode 100644
index 0000000000..0a15c7fac2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth colon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF1A;T&#xFF1A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326.xht
new file mode 100644
index 0000000000..335a92a00a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-326.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth colon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-326-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth colon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF1A;T&#xFF1A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327-ref.xht
new file mode 100644
index 0000000000..3efb61ce2c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth semicolon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF1B;T&#xFF1B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327.xht
new file mode 100644
index 0000000000..5eb9a05757
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-327.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth semicolon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-327-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth semicolon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF1B;T&#xFF1B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328-ref.xht
new file mode 100644
index 0000000000..3bd1baa5a7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth question mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF1F;T&#xFF1F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328.xht
new file mode 100644
index 0000000000..2c33861cd5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-328.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth question mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-328-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth question mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF1F;T&#xFF1F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329-ref.xht
new file mode 100644
index 0000000000..e2e1884094
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth commercial at' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF20;T&#xFF20;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329.xht
new file mode 100644
index 0000000000..abbf3d8112
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-329.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth commercial at' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-329-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth commercial at'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF20;T&#xFF20;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330-ref.xht
new file mode 100644
index 0000000000..af2265d359
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth reverse solidus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF3C;T&#xFF3C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330.xht
new file mode 100644
index 0000000000..001843ffe2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-330.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth reverse solidus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-330-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth reverse solidus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF3C;T&#xFF3C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331-ref.xht
new file mode 100644
index 0000000000..883b91f201
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'halfwidth ideographic full stop' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF61;T&#xFF61;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331.xht
new file mode 100644
index 0000000000..72b7aca3f0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-331.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'halfwidth ideographic full stop' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-331-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'halfwidth ideographic full stop'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF61;T&#xFF61;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332-ref.xht
new file mode 100644
index 0000000000..6e1b323099
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'halfwidth ideographic comma' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF64;T&#xFF64;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332.xht
new file mode 100644
index 0000000000..6d0aaf43e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-332.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'halfwidth ideographic comma' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-332-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'halfwidth ideographic comma'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF64;T&#xFF64;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333-ref.xht
new file mode 100644
index 0000000000..ceff0d27b6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'halfwidth katakana middle dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF65;T&#xFF65;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333.xht
new file mode 100644
index 0000000000..d506a7366b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-333.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'halfwidth katakana middle dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-333-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'halfwidth katakana middle dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF65;T&#xFF65;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334-ref.xht
new file mode 100644
index 0000000000..81b9ce53d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'aegean word separator line' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10100;T&#x10100;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334.xht
new file mode 100644
index 0000000000..e7351e69cd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-334.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'aegean word separator line' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-334-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'aegean word separator line'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10100;T&#x10100;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335-ref.xht
new file mode 100644
index 0000000000..a6d410ebcb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'aegean word separator dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10101;T&#x10101;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335.xht
new file mode 100644
index 0000000000..54c053f89d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-335.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'aegean word separator dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-335-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'aegean word separator dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10101;T&#x10101;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336-ref.xht
new file mode 100644
index 0000000000..eac5169ea1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ugaritic word divider' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x1039F;T&#x1039F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336.xht
new file mode 100644
index 0000000000..a0f0a836df
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-336.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ugaritic word divider' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-336-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ugaritic word divider'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x1039F;T&#x1039F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337-ref.xht
new file mode 100644
index 0000000000..56298bdcd7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A50;T&#x10A50;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337.xht
new file mode 100644
index 0000000000..44cf93976c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-337.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-337-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A50;T&#x10A50;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338-ref.xht
new file mode 100644
index 0000000000..2eb1d5956d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation small circle' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A51;T&#x10A51;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338.xht
new file mode 100644
index 0000000000..ae7899901d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-338.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation small circle' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-338-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation small circle'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A51;T&#x10A51;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339-ref.xht
new file mode 100644
index 0000000000..2a383c2a74
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation circle' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A52;T&#x10A52;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339.xht
new file mode 100644
index 0000000000..128c0e4689
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-339.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation circle' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-339-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation circle'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A52;T&#x10A52;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340-ref.xht
new file mode 100644
index 0000000000..2ced0d9dfa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation crescent bar' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A53;T&#x10A53;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340.xht
new file mode 100644
index 0000000000..bdf37ba119
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-340.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation crescent bar' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-340-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation crescent bar'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A53;T&#x10A53;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341-ref.xht
new file mode 100644
index 0000000000..0bb8ba1c61
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation mangalam' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A54;T&#x10A54;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341.xht
new file mode 100644
index 0000000000..087bfa4c8d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-341.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation mangalam' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-341-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation mangalam'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A54;T&#x10A54;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342-ref.xht
new file mode 100644
index 0000000000..c1c09213bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation lotus' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A55;T&#x10A55;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342.xht
new file mode 100644
index 0000000000..5db768dab8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-342.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation lotus' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-342-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation lotus'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A55;T&#x10A55;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343-ref.xht
new file mode 100644
index 0000000000..9dbff57bcc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation danda' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A56;T&#x10A56;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343.xht
new file mode 100644
index 0000000000..b05a879970
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-343.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation danda' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-343-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation danda'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A56;T&#x10A56;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344-ref.xht
new file mode 100644
index 0000000000..d79fadf32f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation double danda' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A57;T&#x10A57;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344.xht
new file mode 100644
index 0000000000..53b113bbe6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-344.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation double danda' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-344-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation double danda'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A57;T&#x10A57;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345-ref.xht
new file mode 100644
index 0000000000..fc2fc2546b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'kharoshthi punctuation lines' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x10A58;T&#x10A58;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345.xht
new file mode 100644
index 0000000000..0eb0d36d77
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-345.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'kharoshthi punctuation lines' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-345-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'kharoshthi punctuation lines'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x10A58;T&#x10A58;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346-ref.xht
new file mode 100644
index 0000000000..9cf52ab500
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0028;T&#x0028;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346.xht
new file mode 100644
index 0000000000..72b6007447
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-346.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-346-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0028;T&#x0028;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347-ref.xht
new file mode 100644
index 0000000000..0decac2be6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x005B;T&#x005B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347.xht
new file mode 100644
index 0000000000..b873567454
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-347.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-347-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x005B;T&#x005B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348-ref.xht
new file mode 100644
index 0000000000..e258866b09
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x007B;T&#x007B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348.xht
new file mode 100644
index 0000000000..fa7c713347
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-348.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-348-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x007B;T&#x007B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349-ref.xht
new file mode 100644
index 0000000000..9f556e94eb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark gug rtags gyon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F3A;T&#x0F3A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349.xht
new file mode 100644
index 0000000000..130a4e8131
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-349.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark gug rtags gyon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-349-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark gug rtags gyon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F3A;T&#x0F3A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350-ref.xht
new file mode 100644
index 0000000000..723efbc389
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'tibetan mark ang khang gyon' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x0F3C;T&#x0F3C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350.xht
new file mode 100644
index 0000000000..6e5f974af9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-350.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'tibetan mark ang khang gyon' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-350-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'tibetan mark ang khang gyon'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x0F3C;T&#x0F3C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351-ref.xht
new file mode 100644
index 0000000000..2718963ced
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ogham feather mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x169B;T&#x169B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351.xht
new file mode 100644
index 0000000000..051ffa6066
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-351.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ogham feather mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-351-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ogham feather mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x169B;T&#x169B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352-ref.xht
new file mode 100644
index 0000000000..882f06c9a7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'single low-9 quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201A;T&#x201A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352.xht
new file mode 100644
index 0000000000..93b984bb4e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-352.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'single low-9 quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-352-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'single low-9 quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201A;T&#x201A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353-ref.xht
new file mode 100644
index 0000000000..93e4c04a44
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double low-9 quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x201E;T&#x201E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353.xht
new file mode 100644
index 0000000000..52e96431f2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-353.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double low-9 quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-353-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double low-9 quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x201E;T&#x201E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354-ref.xht
new file mode 100644
index 0000000000..79f2d82b91
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left square bracket with quill' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2045;T&#x2045;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354.xht
new file mode 100644
index 0000000000..a85e709fb0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-354.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left square bracket with quill' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-354-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left square bracket with quill'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2045;T&#x2045;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355-ref.xht
new file mode 100644
index 0000000000..0e64ff759f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'superscript left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x207D;T&#x207D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355.xht
new file mode 100644
index 0000000000..09b4991580
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-355.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'superscript left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-355-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'superscript left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x207D;T&#x207D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356-ref.xht
new file mode 100644
index 0000000000..c42bb7c531
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'subscript left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x208D;T&#x208D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356.xht
new file mode 100644
index 0000000000..7016206567
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-356.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'subscript left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-356-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'subscript left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x208D;T&#x208D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357-ref.xht
new file mode 100644
index 0000000000..a874c601e9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left-pointing angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2329;T&#x2329;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357.xht
new file mode 100644
index 0000000000..a4ace8ba90
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-357.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left-pointing angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-357-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left-pointing angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2329;T&#x2329;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359-ref.xht
new file mode 100644
index 0000000000..38be1358f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium left parenthesis ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2768;T&#x2768;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359.xht
new file mode 100644
index 0000000000..e0e2f9ac95
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-359.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium left parenthesis ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-359-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium left parenthesis ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2768;T&#x2768;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360-ref.xht
new file mode 100644
index 0000000000..0c39872369
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium flattened left parenthesis ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276A;T&#x276A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360.xht
new file mode 100644
index 0000000000..75e3c922ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-360.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium flattened left parenthesis ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-360-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium flattened left parenthesis ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276A;T&#x276A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361-ref.xht
new file mode 100644
index 0000000000..ed6b1a9c1a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium left-pointing angle bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276C;T&#x276C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361.xht
new file mode 100644
index 0000000000..33a85a029d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-361.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium left-pointing angle bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-361-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium left-pointing angle bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276C;T&#x276C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362-ref.xht
new file mode 100644
index 0000000000..dcccb8d7f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'heavy left-pointing angle quotation mark ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x276E;T&#x276E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362.xht
new file mode 100644
index 0000000000..c0768de04d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-362.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'heavy left-pointing angle quotation mark ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-362-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'heavy left-pointing angle quotation mark ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x276E;T&#x276E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363-ref.xht
new file mode 100644
index 0000000000..f8603d8a78
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'heavy left-pointing angle bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2770;T&#x2770;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363.xht
new file mode 100644
index 0000000000..92cccd290a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-363.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'heavy left-pointing angle bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-363-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'heavy left-pointing angle bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2770;T&#x2770;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364-ref.xht
new file mode 100644
index 0000000000..df0336c986
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'light left tortoise shell bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2772;T&#x2772;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364.xht
new file mode 100644
index 0000000000..749d6a79d4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-364.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'light left tortoise shell bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-364-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'light left tortoise shell bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2772;T&#x2772;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365-ref.xht
new file mode 100644
index 0000000000..3e0bcf8883
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'medium left curly bracket ornament' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2774;T&#x2774;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365.xht
new file mode 100644
index 0000000000..27a58bb2ee
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-365.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'medium left curly bracket ornament' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-365-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'medium left curly bracket ornament'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2774;T&#x2774;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366-ref.xht
new file mode 100644
index 0000000000..7b3fee6e7d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left s-shaped bag delimiter' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27C5;T&#x27C5;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366.xht
new file mode 100644
index 0000000000..235e9af202
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-366.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left s-shaped bag delimiter' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-366-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left s-shaped bag delimiter'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27C5;T&#x27C5;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367-ref.xht
new file mode 100644
index 0000000000..030975005d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical left white square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27E6;T&#x27E6;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367.xht
new file mode 100644
index 0000000000..6baaa5ddfe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-367.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical left white square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-367-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical left white square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27E6;T&#x27E6;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368-ref.xht
new file mode 100644
index 0000000000..9426cf1601
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical left angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27E8;T&#x27E8;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368.xht
new file mode 100644
index 0000000000..bd7c83b795
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-368.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical left angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-368-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical left angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27E8;T&#x27E8;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369-ref.xht
new file mode 100644
index 0000000000..363ba0e597
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'mathematical left double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x27EA;T&#x27EA;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369.xht
new file mode 100644
index 0000000000..9fa60a115e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-369.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'mathematical left double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-369-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'mathematical left double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x27EA;T&#x27EA;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370-ref.xht
new file mode 100644
index 0000000000..23ffc2fa28
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2983;T&#x2983;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370.xht
new file mode 100644
index 0000000000..d630820f5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-370.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-370-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2983;T&#x2983;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371-ref.xht
new file mode 100644
index 0000000000..dcdaaa5912
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2985;T&#x2985;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371.xht
new file mode 100644
index 0000000000..d2a650ad88
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-371.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-371-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2985;T&#x2985;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372-ref.xht
new file mode 100644
index 0000000000..f53405f52d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'z notation left image bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2987;T&#x2987;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372.xht
new file mode 100644
index 0000000000..11918bfb7a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-372.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'z notation left image bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-372-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'z notation left image bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2987;T&#x2987;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373-ref.xht
new file mode 100644
index 0000000000..333ad4f609
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'z notation left binding bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2989;T&#x2989;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373.xht
new file mode 100644
index 0000000000..3824ddc628
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-373.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'z notation left binding bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-373-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'z notation left binding bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2989;T&#x2989;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374-ref.xht
new file mode 100644
index 0000000000..d38fd0e906
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left square bracket with underbar' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298B;T&#x298B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374.xht
new file mode 100644
index 0000000000..7ef6a58acd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-374.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left square bracket with underbar' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-374-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left square bracket with underbar'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298B;T&#x298B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375-ref.xht
new file mode 100644
index 0000000000..4b3402c6ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left square bracket with tick in top corner' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298D;T&#x298D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375.xht
new file mode 100644
index 0000000000..4291c0e105
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-375.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left square bracket with tick in top corner' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-375-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left square bracket with tick in top corner'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298D;T&#x298D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376-ref.xht
new file mode 100644
index 0000000000..154aa4c15e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left square bracket with tick in bottom corner' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x298F;T&#x298F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376.xht
new file mode 100644
index 0000000000..39899ed7e5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-376.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left square bracket with tick in bottom corner' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-376-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left square bracket with tick in bottom corner'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x298F;T&#x298F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377-ref.xht
new file mode 100644
index 0000000000..c73e2b8f95
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left angle bracket with dot' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2991;T&#x2991;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377.xht
new file mode 100644
index 0000000000..3696d834b3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-377.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left angle bracket with dot' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-377-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left angle bracket with dot'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2991;T&#x2991;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378-ref.xht
new file mode 100644
index 0000000000..5224bc29e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left arc less-than bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2993;T&#x2993;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378.xht
new file mode 100644
index 0000000000..9bc85b4d9c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-378.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left arc less-than bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-378-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left arc less-than bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2993;T&#x2993;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379-ref.xht
new file mode 100644
index 0000000000..d5180e2010
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'double left arc greater-than bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2995;T&#x2995;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379.xht
new file mode 100644
index 0000000000..c52505b578
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-379.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'double left arc greater-than bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-379-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'double left arc greater-than bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2995;T&#x2995;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380-ref.xht
new file mode 100644
index 0000000000..40c7b8524a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left black tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x2997;T&#x2997;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380.xht
new file mode 100644
index 0000000000..0680a8c905
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-380.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left black tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-380-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left black tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x2997;T&#x2997;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381-ref.xht
new file mode 100644
index 0000000000..15f58471c6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left wiggly fence' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29D8;T&#x29D8;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381.xht
new file mode 100644
index 0000000000..4e92ec0196
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-381.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left wiggly fence' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-381-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left wiggly fence'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29D8;T&#x29D8;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382-ref.xht
new file mode 100644
index 0000000000..37e364a8e5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left double wiggly fence' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29DA;T&#x29DA;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382.xht
new file mode 100644
index 0000000000..873e149662
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-382.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left double wiggly fence' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-382-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left double wiggly fence'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29DA;T&#x29DA;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383-ref.xht
new file mode 100644
index 0000000000..c309ac1971
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left-pointing curved angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x29FC;T&#x29FC;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383.xht
new file mode 100644
index 0000000000..578da84d0b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-383.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left-pointing curved angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-383-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left-pointing curved angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x29FC;T&#x29FC;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384-ref.xht
new file mode 100644
index 0000000000..9c1961a713
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3008;T&#x3008;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384.xht
new file mode 100644
index 0000000000..74cf8b6e40
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-384.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-384-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3008;T&#x3008;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385-ref.xht
new file mode 100644
index 0000000000..8208d9e9a0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300A;T&#x300A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385.xht
new file mode 100644
index 0000000000..a7cc533d36
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-385.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-385-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300A;T&#x300A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386-ref.xht
new file mode 100644
index 0000000000..eed90d6fa0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300C;T&#x300C;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386.xht
new file mode 100644
index 0000000000..0e59afa4ff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-386.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-386-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300C;T&#x300C;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387-ref.xht
new file mode 100644
index 0000000000..f21171a94e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x300E;T&#x300E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387.xht
new file mode 100644
index 0000000000..e75fd567a6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-387.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-387-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x300E;T&#x300E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388-ref.xht
new file mode 100644
index 0000000000..291d452d36
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left black lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3010;T&#x3010;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388.xht
new file mode 100644
index 0000000000..19e24082cb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-388.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left black lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-388-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left black lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3010;T&#x3010;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389-ref.xht
new file mode 100644
index 0000000000..1e62102a45
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3014;T&#x3014;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389.xht
new file mode 100644
index 0000000000..8bbfee937e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-389.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-389-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3014;T&#x3014;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390-ref.xht
new file mode 100644
index 0000000000..217815f932
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3016;T&#x3016;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390.xht
new file mode 100644
index 0000000000..5b3f374c8a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-390.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-390-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3016;T&#x3016;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391-ref.xht
new file mode 100644
index 0000000000..8e35aa0192
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x3018;T&#x3018;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391.xht
new file mode 100644
index 0000000000..b94c12f85d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-391.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-391-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x3018;T&#x3018;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392-ref.xht
new file mode 100644
index 0000000000..ec04c185af
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'left white square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x301A;T&#x301A;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392.xht
new file mode 100644
index 0000000000..12d5c0a924
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-392.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'left white square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-392-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'left white square bracket' ." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x301A;T&#x301A;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393-ref.xht
new file mode 100644
index 0000000000..fbfe6cc7bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'reversed double prime quotation mark' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#x301D;T&#x301D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393.xht
new file mode 100644
index 0000000000..170a4b0fa6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-393.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'reversed double prime quotation mark' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-393-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'reversed double prime quotation mark'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#x301D;T&#x301D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394-ref.xht
new file mode 100644
index 0000000000..9969169c14
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'ornate left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFD3E;T&#xFD3E;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394.xht
new file mode 100644
index 0000000000..f86439f8ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-394.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'ornate left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-394-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'ornate left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFD3E;T&#xFD3E;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395-ref.xht
new file mode 100644
index 0000000000..847d12c90b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left white lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE17;T&#xFE17;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395.xht
new file mode 100644
index 0000000000..a1c9d37c09
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-395.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left white lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-395-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left white lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE17;T&#xFE17;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396-ref.xht
new file mode 100644
index 0000000000..c19443bf4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE35;T&#xFE35;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396.xht
new file mode 100644
index 0000000000..1ca69404d9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-396.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-396-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE35;T&#xFE35;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397-ref.xht
new file mode 100644
index 0000000000..3092170b67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE37;T&#xFE37;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397.xht
new file mode 100644
index 0000000000..e46490cfdc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-397.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-397-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE37;T&#xFE37;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398-ref.xht
new file mode 100644
index 0000000000..0707b0de49
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE39;T&#xFE39;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398.xht
new file mode 100644
index 0000000000..f43ddddf24
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-398.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-398-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE39;T&#xFE39;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399-ref.xht
new file mode 100644
index 0000000000..3fb9b4b6f9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left black lenticular bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3B;T&#xFE3B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399.xht
new file mode 100644
index 0000000000..804307306d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-399.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left black lenticular bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-399-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left black lenticular bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3B;T&#xFE3B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400-ref.xht
new file mode 100644
index 0000000000..43f6464cab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left double angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3D;T&#xFE3D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400.xht
new file mode 100644
index 0000000000..7987af2244
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-400.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left double angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-400-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left double angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3D;T&#xFE3D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401-ref.xht
new file mode 100644
index 0000000000..4d84f8bc07
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left angle bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE3F;T&#xFE3F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401.xht
new file mode 100644
index 0000000000..468370e0cd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-401.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left angle bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-401-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left angle bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE3F;T&#xFE3F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402-ref.xht
new file mode 100644
index 0000000000..d71d4c7769
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE41;T&#xFE41;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402.xht
new file mode 100644
index 0000000000..e803fb0b41
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-402.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-402-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE41;T&#xFE41;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403-ref.xht
new file mode 100644
index 0000000000..027e8cc4b9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left white corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE43;T&#xFE43;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403.xht
new file mode 100644
index 0000000000..80fe83281e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-403.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left white corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-403-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left white corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE43;T&#xFE43;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404-ref.xht
new file mode 100644
index 0000000000..527db92bfc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'presentation form for vertical left square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE47;T&#xFE47;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404.xht
new file mode 100644
index 0000000000..67ce216676
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-404.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'presentation form for vertical left square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-404-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'presentation form for vertical left square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE47;T&#xFE47;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405-ref.xht
new file mode 100644
index 0000000000..6a95dd6be1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE59;T&#xFE59;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405.xht
new file mode 100644
index 0000000000..1f09b6b403
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-405.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-405-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE59;T&#xFE59;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406-ref.xht
new file mode 100644
index 0000000000..4d138e1b41
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small left curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5B;T&#xFE5B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406.xht
new file mode 100644
index 0000000000..71a8f3f0b5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-406.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small left curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-406-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small left curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5B;T&#xFE5B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407-ref.xht
new file mode 100644
index 0000000000..4ad5dfee17
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'small left tortoise shell bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFE5D;T&#xFE5D;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407.xht
new file mode 100644
index 0000000000..7ac03741dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-407.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'small left tortoise shell bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-407-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'small left tortoise shell bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFE5D;T&#xFE5D;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408-ref.xht
new file mode 100644
index 0000000000..a8049f2e81
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth left parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF08;T&#xFF08;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408.xht
new file mode 100644
index 0000000000..fec44ddc4b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-408.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth left parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-408-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth left parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF08;T&#xFF08;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409-ref.xht
new file mode 100644
index 0000000000..39a666d6aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth left square bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF3B;T&#xFF3B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409.xht
new file mode 100644
index 0000000000..869e7c009c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-409.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth left square bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-409-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth left square bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF3B;T&#xFF3B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410-ref.xht
new file mode 100644
index 0000000000..440e8501b9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth left curly bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF5B;T&#xFF5B;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410.xht
new file mode 100644
index 0000000000..909fc8817f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-410.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth left curly bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-410-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth left curly bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF5B;T&#xFF5B;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411-ref.xht
new file mode 100644
index 0000000000..ff38f31eb8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'fullwidth left white parenthesis' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF5F;T&#xFF5F;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411.xht
new file mode 100644
index 0000000000..902d37bac5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-411.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'fullwidth left white parenthesis' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-411-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'fullwidth left white parenthesis'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF5F;T&#xFF5F;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412-ref.xht
new file mode 100644
index 0000000000..bc02e2293f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reference: Green 'halfwidth left corner bracket' punctuation character</title>
+ <style type="text/css">
+ span
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div><span>&#xFF62;T&#xFF62;</span>est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412.xht
new file mode 100644
index 0000000000..2fe316e6a6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-punctuation-412.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with the 'halfwidth left corner bracket' punctuation character</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-punctuation-412-ref.xht" />
+ <meta name="assert" content="Punctuation characters defined in Unicode [UNICODE] in (Ps),(Pe),(Pi),(Pf) and (Po) punctuation classes that precede or follow the first letter are included in first-letter selection - 'halfwidth left corner bracket'." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ font-size: 36px;
+ line-height: 2;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "T" and surrounding punctuation below are green.</p>
+ <div>&#xFF62;T&#xFF62;est</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001-ref.xht
new file mode 100644
index 0000000000..054b9fe1e4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001-ref.xht
@@ -0,0 +1,11 @@
+<!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>
+ <style type="text/css">
+ div { color: black; }
+ span#letter { color: green; }
+ </style>
+</head>
+<body>
+ <div><span id="letter">"T</span>his is text"</div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001.xht
new file mode 100644
index 0000000000..60225a6977
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-001.xht
@@ -0,0 +1,16 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div>"This is text"</div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-002.xht
new file mode 100644
index 0000000000..7edb6039f2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-002.xht
@@ -0,0 +1,19 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ span:before { content: open-quote; }
+ span:after { content: close-quote; }
+ span { quotes: '"' '"'; }
+ </style>
+</head>
+<body>
+ <div><span>This is text</span></div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-003.xht
new file mode 100644
index 0000000000..6effc96964
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-003.xht
@@ -0,0 +1,19 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ span:before { content: open-quote "This "; }
+ span:after { content: close-quote; }
+ span { quotes: '"' '"'; }
+ </style>
+</head>
+<body>
+ <div><span>is text</span></div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-004.xht
new file mode 100644
index 0000000000..81b4884f0b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-004.xht
@@ -0,0 +1,24 @@
+<!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: :first-letter</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div><span></span></div>
+ <script type="text/javascript">
+ document.body.offsetWidth;
+ document.getElementsByTagName("span")[0].
+ appendChild(document.createTextNode('"'));
+ document.getElementsByTagName("span")[0].
+ appendChild(document.createTextNode('This is text"'));
+ </script>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-005.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-005.xht
new file mode 100644
index 0000000000..b9a30fac4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-005.xht
@@ -0,0 +1,16 @@
+<!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: :first-letter</title>
+ <link rel="author" title="L. David Baron" href="https://dbaron.org/" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ </style>
+</head>
+<body>
+ <div><a>"<span>This is text</span>"</a></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-006.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-006.xht
new file mode 100644
index 0000000000..ecad3107c8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-quote-006.xht
@@ -0,0 +1,17 @@
+<!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: :first-letter</title>
+ <link rel="author" title="L. David Baron" href="https://dbaron.org/" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-quote-001-ref.xht"/>
+ <style type="text/css">
+ div { color: black; }
+ div:first-letter { color: green; }
+ span:before { content: "\"This "; }
+ </style>
+</head>
+<body>
+ <div><span>is text"</span></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000-ref.html
new file mode 100644
index 0000000000..ea97ba2a17
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000-ref.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ div {
+ color: green;
+ font: 2em sans-serif;
+ }
+</style>
+<body>
+ <p>This next line should be green:</p>
+ <div>TESTING</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000.xht
new file mode 100644
index 0000000000..0fdef1893b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-000.xht
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-letter in XML</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-letter/001.xml" type="application/xhtml+xml"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-000-ref.html" />
+ <style type="text/css">
+ .test { float: left; font: 2em sans-serif; }
+ .test:first-letter { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This next line should be green:</p>
+ <div class="test">T</div>
+ <div class="test"><![CDATA[E]]></div>
+ <div class="test">&#x0053;</div>
+ <div class="test"><div>T</div></div> <!-- debatable, CSS2.1 should clarify this -->
+ <div class="test"> I </div>
+ <div class="test"><!-- FAIL -->N</div>
+ <div class="test">
+G</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001-ref.html
new file mode 100644
index 0000000000..625c2f5c15
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ span {
+ color: green;
+ }
+</style>
+<body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div><span>F</span>iller Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001.xht
new file mode 100644
index 0000000000..d62f1aeeea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: First-letter pseudo-element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-001-ref.html" />
+ <meta name="assert" content="The :first-letter pseudo-element matches the first letter in a given element." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002-ref.html
new file mode 100644
index 0000000000..39d40455a7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div><img alt="15x15 blue box" src="support/blue15x15.png" />Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002.xht
new file mode 100644
index 0000000000..982c64dbc2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-002.xht
@@ -0,0 +1,21 @@
+<!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: First-letter pseudo-element with image missing alt text</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-002-ref.html" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="If there is preceding content (an image) or alt text the :first-letter pseudo-element does not match the first letter." />
+ <style type="text/css">
+ #div1:first-letter
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="div1"><img alt="15x15 blue box" src="support/blue15x15.png" />Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003-ref.html
new file mode 100644
index 0000000000..a818e1a7d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ span {
+ color: green;
+ }
+</style>
+<body>
+ <p>Test passes if the number "4" below is green.</p>
+ <div><span>4</span>2 Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003.xht
new file mode 100644
index 0000000000..d5d6f4bb82
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-003.xht
@@ -0,0 +1,20 @@
+<!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: First-letter as a digit</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-003-ref.html" />
+ <meta name="assert" content="The ':first-letter' applies if the first letter is a digit." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the number "4" below is green.</p>
+ <div>42 Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-004.xht
new file mode 100644
index 0000000000..0c8f32fe72
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-004.xht
@@ -0,0 +1,25 @@
+<!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: First-letter and :before</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-001-ref.html" />
+ <meta name="assert" content="If an element has ':before' or ':after' content, the ':first-letter applies to the first letter of the element including that content." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ div:before
+ {
+ color: black;
+ content: "Filler Text";
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005-ref.html
new file mode 100644
index 0000000000..d64537c238
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div><br />Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005.xht
new file mode 100644
index 0000000000..32c7d93ea3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-005.xht
@@ -0,0 +1,20 @@
+<!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: First-letter with leading line break</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-005-ref.html" />
+ <meta name="assert" content="The first letter occurs on the first formatted line." />
+ <style type="text/css">
+ div:first-letter
+ {
+ background: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div><br />Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-006.xht
new file mode 100644
index 0000000000..e37dd925c2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-006.xht
@@ -0,0 +1,26 @@
+<!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: First-letter with list items</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="If an element is a list item, the ':first-letter' applies to the first letter in the principal box after the marker." />
+ <style type="text/css">
+ li:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" in the words "Filler Text" are all green, and the preceding marker bullets match the marker bullet at the bottom of the list.</p>
+ <ul>
+ <li>Filler Text</li>
+ <li>Filler Text</li>
+ <li>Filler Text</li>
+ </ul>
+ <ul>
+ <li></li>
+ </ul>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007-ref.html b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007-ref.html
new file mode 100644
index 0000000000..4c2801b0aa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ span {
+ color: green;
+ }
+</style>
+<body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <table>
+ <tr>
+ <td><span>F</span>iller Text</td>
+ </tr>
+ </table>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007.xht
new file mode 100644
index 0000000000..4e09d09679
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-007.xht
@@ -0,0 +1,24 @@
+<!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: First-letter with table cell elements</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-007-ref.html" />
+ <meta name="assert" content="The :first-letter pseudo-element applies to table-cells." />
+ <style type="text/css">
+ td:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <table>
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-008.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-008.xht
new file mode 100644
index 0000000000..a3664bbbef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-008.xht
@@ -0,0 +1,24 @@
+<!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: First-letter with inline-block elements</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-001-ref.html" />
+ <meta name="assert" content="The first-letter pseudo-element applies to inline-block elements." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ div
+ {
+ display: inline-block;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-009.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-009.xht
new file mode 100644
index 0000000000..7ac690934c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-009.xht
@@ -0,0 +1,26 @@
+<!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: First-letter and valid properties</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The color, font-size, text-decoration, text-transform, background and border properties apply to :first-letter." />
+ <style type="text/css">
+ div p:first-letter, span
+ {
+ border: 3px solid black;
+ color: silver;
+ font-size: 36px;
+ text-decoration: underline;
+ text-transform: lowercase;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letters below have the same background, border, underline, are the same size, and are in lowercase.</p>
+ <div>
+ <span>T</span>
+ <p>T</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-010.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-010.xht
new file mode 100644
index 0000000000..213ba675bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-010.xht
@@ -0,0 +1,21 @@
+<!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: First-letter as a float</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The float property applies to :first-letter." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ float: right;
+ font-size: 36px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green letter "T" to the right of the "Filler Text" below.</p>
+ <div>TFiller Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-011.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-011.xht
new file mode 100644
index 0000000000..8ee18cc477
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-011.xht
@@ -0,0 +1,23 @@
+<!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: First-letter using letter-spacing property</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The letter-spacing property is allowed for :first-letter." />
+ <style type="text/css">
+ div p:first-letter, span
+ {
+ color: green;
+ letter-spacing: 45px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two sentences below look identical.</p>
+ <div>
+ <span>T</span>hese sentences should look identical.
+ <p>These sentences should look identical.</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-012.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-012.xht
new file mode 100644
index 0000000000..74ca7176f9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-012.xht
@@ -0,0 +1,23 @@
+<!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: First-letter using margin</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The margin property is allowed for :first-letter." />
+ <style type="text/css">
+ div p:first-letter, span
+ {
+ color: green;
+ margin: 15px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div>
+ <span>F</span>iller Text Filler Text Filler Text
+ <p>Filler Text Filler Text Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-013.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-013.xht
new file mode 100644
index 0000000000..1c9b77aacf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-013.xht
@@ -0,0 +1,29 @@
+<!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: First-letter using background and padding</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The background and padding properties is allowed for :first-letter." />
+ <style type="text/css">
+ div
+ {
+ margin-top: 40px;
+ }
+ div div:first-letter, span
+ {
+ background: aqua;
+ color: green;
+ padding: 24px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div>
+ <span>F</span>iller Text Filler Text Filler Text
+ <br /><br />
+ <div>Filler Text Filler Text Filler Text</div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-014.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-014.xht
new file mode 100644
index 0000000000..f02534582e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-014.xht
@@ -0,0 +1,25 @@
+<!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: First-letter using vertical-align and line-height</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The vertical-align and line-height properties is allowed for :first-letter." />
+ <style type="text/css">
+ div p:first-letter, span
+ {
+ color: green;
+ font-size: 32px;
+ line-height: 64px;
+ vertical-align: top;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div>
+ <span>F</span>iller Text Filler Text Filler Text
+ <p>Filler Text Filler Text Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-015.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-015.xht
new file mode 100644
index 0000000000..210b2d523b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-015.xht
@@ -0,0 +1,28 @@
+<!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: First-letter with img alt text</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="The ':first-letter' pseudo-element can be used with all such elements that contain text, or that have a descendant in the same flow that contains text." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if one and ony one of the following cases are true:</p>
+ <ul>
+ <li>If the two words "Missing image" are shown and the capital "M" is green.</li>
+ <li>If a missing image icon is shown and the text "Missing image" is shown.</li>
+ <li>If only a missing image icon is shown.</li>
+ <li>If nothing is rendered below.</li>
+ </ul>
+ <div>
+ <img src="#" alt="Missing image" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-016.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-016.xht
new file mode 100644
index 0000000000..1ae28b9636
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-016.xht
@@ -0,0 +1,22 @@
+<!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: First-letter with img preceding text</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="First-letter selects the first letter of a block if it is not preceded by any other content on its line." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <img src="support/green15x15.png" alt="15x15 green box" />Filler Text
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-017.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-017.xht
new file mode 100644
index 0000000000..8f5facd894
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-017.xht
@@ -0,0 +1,25 @@
+<!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: Inline-block usage with :first-letter</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The first letter of an inline-block cannot be the first letter of an ancestor element." />
+ <style type="text/css">
+ div:first-letter
+ {
+ background: red;
+ }
+ div p
+ {
+ display: inline-block;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-018.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-018.xht
new file mode 100644
index 0000000000..a19697ac10
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-018.xht
@@ -0,0 +1,19 @@
+<!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: First-letter with punctuation</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The ':first-letter' pseudo-element also applies to punctuation." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the quote and the letter "F" of the "Filler Text" below is green.</p>
+ <div>"Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-019.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-019.xht
new file mode 100644
index 0000000000..f4ae8bc545
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-019.xht
@@ -0,0 +1,22 @@
+<!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: First-letter in descendents</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <link rel="match" href="first-letter-selector-001-ref.html" />
+ <meta name="assert" content="A user agent acts as if the fictional start tag of the first-letter pseudo-element is just before the first text of the element, even if that first text is in a descendant." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div>
+ <span>Filler Text</span>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-020.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-020.xht
new file mode 100644
index 0000000000..4cc9abdd78
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-020.xht
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: First-letter and language specific letter combinations</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="may" />
+ <meta name="assert" content="Some letter combinations in some languages may be considered part of the first-letter pseudo-element." />
+ <style type="text/css">
+ div
+ {
+ font-size: 50px;
+ }
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if both letters "ij" are green or if only the "i" is green.</p>
+ <div lang="nl">ijFiller Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-021.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-021.xht
new file mode 100644
index 0000000000..d3ba2e9f5e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-021.xht
@@ -0,0 +1,26 @@
+<!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: First-letter on list-style-position: inside</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="may" />
+ <meta name="assert" content="User agents may ignore ':first-letter' on list items with 'list-style-position: inside'." />
+ <style type="text/css">
+ li:first-letter
+ {
+ color: green;
+ }
+ .inside
+ {
+ list-style-position: inside;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes regardless if the letter "F" in the "Filler Text" below is green.</p>
+ <ul>
+ <li class="inside">Filler Text</li>
+ </ul>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-022.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-022.xht
new file mode 100644
index 0000000000..a35651a700
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-022.xht
@@ -0,0 +1,20 @@
+<!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: First-letter in different elements than its punctuation</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="may" />
+ <meta name="assert" content="If the letters that would form the first-letter are not in the same element the user agent may create a first-letter pseudo-element from one of the elements, both elements, or simply not create a pseudo-element." />
+ <style type="text/css">
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes regardless if the leading quote, the letter "T" and the following quote are green.</p>
+ <div>"<em>T</em>"</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-023.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-023.xht
new file mode 100644
index 0000000000..949305d294
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-023.xht
@@ -0,0 +1,24 @@
+<!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: First-letter on bidi text</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="flags" content="may" />
+ <meta name="assert" content="If the first letter of the block is not at the start of the line (for example due to bidirectional reordering), then the user agent need not create the pseudo-element." />
+ <style type="text/css">
+ div
+ {
+ direction: rtl;
+ }
+ div:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-024.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-024.xht
new file mode 100644
index 0000000000..7cd34b7796
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-024.xht
@@ -0,0 +1,24 @@
+<!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: Table-cell usage with :first-letter</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The first letter of a table-cell cannot be the first letter of an ancestor element." />
+ <style type="text/css">
+ tr:first-letter
+ {
+ background: red;
+ font-size: 40px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <table>
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-025.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-025.xht
new file mode 100644
index 0000000000..d46a852a78
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-025.xht
@@ -0,0 +1,24 @@
+<!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: First-letter with table caption elements</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <meta name="assert" content="The :first-letter pseudo-element applies to table-captions." />
+ <style type="text/css">
+ caption:first-letter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <table>
+ <caption>Filler Text</caption>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-026.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-026.xht
new file mode 100644
index 0000000000..b62df8b8df
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-026.xht
@@ -0,0 +1,15 @@
+<!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: First-Letter: Basic Test</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-letter/005.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <style type="text/css">
+ p:first-letter { float: left; padding: 0.1em; border: solid; color: lime; background: green; }
+ </style>
+ </head>
+ <body>
+ <p>The first letter of this paragraph should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-027.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-027.xht
new file mode 100644
index 0000000000..1f51e18245
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-027.xht
@@ -0,0 +1,15 @@
+<!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: First-Letter: Basic Test</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-letter/006.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" />
+ <style type="text/css">
+ p:first-letter { border: solid; padding: 0.1em; color: lime; background: green; }
+ </style>
+ </head>
+ <body>
+ <p>The first letter of this paragraph should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028-ref.xht
new file mode 100644
index 0000000000..3a4b09658a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028-ref.xht
@@ -0,0 +1,30 @@
+<!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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ color: blue;
+ font-size: 3em;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there are 2 identical big blue "A" letters.</p>
+
+ <div>A</div>
+
+ <div>A</div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028.xht
new file mode 100644
index 0000000000..2780fdb830
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-028.xht
@@ -0,0 +1,44 @@
+<!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>
+
+ <!--
+ Inspired by
+ Bug 214004 - ::first-letter isn't applied if first letter is inside a child block
+ https://bugzilla.mozilla.org/show_bug.cgi?id=214004
+ -->
+
+ <title>CSS Test: First-letter - in-flow block descendant that contains text</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" title="5.12.2 The :first-letter pseudo-element" />
+ <link rel="match" href="first-letter-selector-028-ref.xht" />
+
+ <meta name="assert" content="The :first-letter pseudo-element can be used and will apply onto in-flow block descendant that contains text." />
+
+ <style type="text/css"><![CDATA[
+ div {color: white;}
+
+ div#test:first-letter, span#reference
+ {
+ color: blue;
+ font-size: 3em;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there are 2 identical big blue "A" letters.</p>
+
+ <div id="test">
+ <div>Adivtest</div>
+ </div>
+
+ <div><span id="reference">A</span>spanref</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-029.xht b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-029.xht
new file mode 100644
index 0000000000..3cc9668ff5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-letter-selector-029.xht
@@ -0,0 +1,45 @@
+<!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>
+
+ <!--
+ Inspired by
+ Bug 8253: Can't dynamically add ::first-line / ::first-letter style
+ https://bugzilla.mozilla.org/show_bug.cgi?id=8253
+ -->
+
+ <title>CSS Test: First-letter - dynamic :hover pseudo-class</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" title="5.12.2 The :first-letter pseudo-element" />
+
+ <meta content="interact" name="flags" />
+ <meta content="The :first-letter pseudo-element can be used and will apply onto an :hover pseudo-class." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: white;
+ color: black;
+ font-size: 60px;
+ }
+
+ div:hover:first-letter
+ {
+ background-color: blue;
+ color: white;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the "T" letter (and only the "T" letter) becomes white on blue background when the mouse cursor hovers over "Text sample" or hovers over its right-hand side.</p>
+
+ <div>Text sample</div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-001-ref.xht
new file mode 100644
index 0000000000..b94666764c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-001-ref.xht
@@ -0,0 +1,10 @@
+<!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>
+ <style type="text/css">
+ body { color: green }
+ </style>
+ </head>
+ <body>
+ This should be green
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-001.xht
new file mode 100644
index 0000000000..bc0bf1c4ea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-001.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-001-ref.xht"/>
+ <style type="text/css">
+ body { color: red }
+ body:first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ This should be green
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001-ref.xht
new file mode 100644
index 0000000000..51b9f849eb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001-ref.xht
@@ -0,0 +1,11 @@
+<!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>
+ <style type="text/css">
+ div { color: green }
+ </style>
+ </head>
+ <body>
+ <div><span style="float: left">This should be green</span></div>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001.xht
new file mode 100644
index 0000000000..bdfab88156
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-001.xht
@@ -0,0 +1,17 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-floats-001-ref.xht"/>
+ <style type="text/css">
+ div { color: green }
+ div:first-line { color: red }
+ </style>
+ </head>
+ <body>
+ <div><span style="float: left">This should be green</span></div>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-002.xht
new file mode 100644
index 0000000000..827e77d40e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-002.xht
@@ -0,0 +1,16 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-floats-001-ref.xht"/>
+ <style type="text/css">
+ div { color: red }
+ div:first-line { color: green }
+ </style>
+ </head>
+ <body>
+ <div><span><span style="float: left">This should be green</span></span></div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-003.xht
new file mode 100644
index 0000000000..fd1e92e1af
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-003.xht
@@ -0,0 +1,20 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-floats-001-ref.xht"/>
+ <style type="text/css">
+ div { color: green }
+ div:first-line { color: red }
+ </style>
+ </head>
+ <body>
+ <div>
+ <span style="float: left" class="some value">
+ This should be green
+ </span>
+ </div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-004.xht
new file mode 100644
index 0000000000..e80aee2e80
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-floats-004.xht
@@ -0,0 +1,27 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-floats-001-ref.xht"/>
+ <meta name="flags" content="dom" />
+ <style type="text/css">
+ div { color: green }
+ div:first-line { color: red }
+ </style>
+ <script type="text/javascript">
+ function runTest() {
+ var s = document.createElement("span");
+ s.setAttribute("style", "float: left");
+ s.appendChild(document.createTextNode("This should be green"));
+ var i = document.getElementById("i");
+ i.parentNode.insertBefore(s, i);
+ }
+ </script>
+ </head>
+ <body onload="runTest()">
+ <div><span id="i"></span></div>
+
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001-ref.xht
new file mode 100644
index 0000000000..5cb18cb05b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001-ref.xht
@@ -0,0 +1,15 @@
+<!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>
+<style type="text/css">
+
+.a { overflow: scroll; }
+.b, .c { overflow: inherit; }
+
+</style>
+</head>
+<body>
+
+<div class="a"><span class="b"><div class="c"></div></span></div>
+
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001.xht
new file mode 100644
index 0000000000..99e18fb8f6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-001.xht
@@ -0,0 +1,21 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-inherit-001-ref.xht"/>
+<style type="text/css">
+
+.a:first-line { }
+.a { overflow: scroll; }
+.b, .c { overflow: inherit; }
+
+</style>
+</head>
+<body>
+
+<div class="a"><span class="b"><div class="c"></div></span></div>
+
+
+
+</body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002-ref.xht
new file mode 100644
index 0000000000..cd2a107456
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002-ref.xht
@@ -0,0 +1,10 @@
+<!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>
+ <style type="text/css">
+ div { background: green; }
+ </style>
+ </head>
+ <body>
+ <div>OneTwo</div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002.xht
new file mode 100644
index 0000000000..41409a6019
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-002.xht
@@ -0,0 +1,17 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-inherit-002-ref.xht"/>
+ <style type="text/css">
+ div { background: green; }
+ div:first-line { background-color: red; }
+ span.one { background: inherit; }
+ span.two { background-color: inherit; }
+ </style>
+ </head>
+ <body>
+ <div><span class="one">One</span><span class="two">Two</span></div>
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003-ref.xht
new file mode 100644
index 0000000000..375539f89b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003-ref.xht
@@ -0,0 +1,10 @@
+<!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>
+ <style type="text/css">
+ div { background: green; }
+ </style>
+ </head>
+ <body>
+ <div><p>OneTwo</p></div>
+
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003.xht
new file mode 100644
index 0000000000..856d4a0587
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-inherit-003.xht
@@ -0,0 +1,17 @@
+<!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: :first-line</title>
+ <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
+ <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-inherit-003-ref.xht"/>
+ <style type="text/css">
+ div, p { background: green; }
+ div:first-line, p:first-line { background-color: red; }
+ span.one { background: inherit; }
+ span.two { background-color: inherit; }
+ </style>
+ </head>
+ <body>
+ <div><p><span class="one">One</span><span class="two">Two</span></p></div>
+
+</body></html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-001.xht
new file mode 100644
index 0000000000..60d38500e9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-001.xht
@@ -0,0 +1,25 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: red; }
+ :first-line { color: green; }
+ p, p:first-line { color: black; background: white; }
+ </style>
+ </head>
+ <body>
+ <p>The following lines should all be green (assuming none of them wrap onto more than one line).</p>
+ <div>
+ <div> This line should be green. </div>
+ &nbsp;
+ <div> This line should be green. </div>
+ &nbsp;
+ <div> This line should be green. </div>
+ &nbsp;
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-002.xht
new file mode 100644
index 0000000000..3b745a29db
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-002.xht
@@ -0,0 +1,25 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: green; }
+ :first-line { color: red; }
+ p, p:first-line { color: black; background: white; }
+ </style>
+ </head>
+ <body>
+ <p>The following lines should all be green (assuming none of them wrap onto more than one line).</p>
+ <div>
+ <div> &nbsp; </div>
+ This line should be green.
+ <div> &nbsp; </div>
+ This line should be green.
+ <div> &nbsp; </div>
+ This line should be green.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-004.xht
new file mode 100644
index 0000000000..8c652b7bec
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-004.xht
@@ -0,0 +1,26 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/004.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: red; }
+ :first-line { color: green; }
+ p, p:first-line { color: black; background: white; }
+ </style>
+ </head>
+ <body>
+ <p>The following lines should all be green (assuming none of them wrap onto more than one line).</p>
+ <div>
+ This line should be green.
+ <div> This line should be green. </div>
+ &nbsp;
+ <div> This line should be green. </div>
+ &nbsp;
+ <div> This line should be green. </div>
+ &nbsp;
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-005.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-005.xht
new file mode 100644
index 0000000000..17f16d75b1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-005.xht
@@ -0,0 +1,26 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/005.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: green; }
+ :first-line { color: red; }
+ p, p:first-line { color: black; background: white; }
+ </style>
+ </head>
+ <body>
+ <p>The following lines should all be green (assuming none of them wrap onto more than one line).</p>
+ <div>
+ &nbsp;
+ <div> &nbsp; </div>
+ This line should be green.
+ <div> &nbsp; </div>
+ This line should be green.
+ <div> &nbsp; </div>
+ This line should be green.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-007.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-007.xht
new file mode 100644
index 0000000000..6cdacc6058
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-007.xht
@@ -0,0 +1,20 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/007.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: red; }
+ div div { float: right; }
+ :first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ <div>
+ <div></div>
+ This text should be green.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-008.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-008.xht
new file mode 100644
index 0000000000..19b867f7e1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-008.xht
@@ -0,0 +1,20 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and anonymous boxes</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/008.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ div { color: red; }
+ div div { display: none; }
+ :first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ <div>
+ <div></div>
+ This text should be green.
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-010.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-010.xht
new file mode 100644
index 0000000000..f07bb02c0b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-010.xht
@@ -0,0 +1,19 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: CSS Block Box Model: first-line and borders</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/010.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ .test { border: solid green; }
+ :first-line { }
+ </style>
+ </head>
+ <body>
+ <!-- This specifically tests for an IE6 Preview bug. It only occurs
+ if the selector is a class or id selector, or a combination thereof,
+ without any other selector or combinator. -->
+ <p class="test">The text should have a solid green border.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-011.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-011.xht
new file mode 100644
index 0000000000..8d84e87fff
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-011.xht
@@ -0,0 +1,46 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: :first-line and margin collapsing</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/011.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ td { width: 8em; padding: 0; border: solid; }
+ .test { background: orange; }
+ .test .a { margin: 0 0 1em 0; background: teal; height: 1em; }
+ .test .b { margin: 0 0 0 0; background: red; }
+ .test .c { margin: 1em 0 0 0; background: yellow; height: 1em; }
+ .test.fl .b:first-line { color: red; }
+ .control { background: red; }
+ .control .a { border-top: 1em teal solid; }
+ .control .b { border-top: 1em orange solid; }
+ .control .c { border-top: 1em yellow solid; }
+ </style>
+ </head>
+ <body>
+ <p>The next three boxes should look identical. (If the second and
+ third look different, then margin collapsing through empty elements
+ is broken. Go to <a href="../margin-collapse/">these tests</a> for
+ more details.)</p>
+ <table>
+ <tr>
+ <td class="fl test">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ <td class="test">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012-ref.xht
new file mode 100644
index 0000000000..3e867f90a5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012-ref.xht
@@ -0,0 +1,73 @@
+<!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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ .reference
+ {
+ border: solid black;
+ margin-top: 50px;
+ width: 50px;
+ }
+
+ .aqua40
+ {
+ background-color: aqua;
+ height: 40px;
+ }
+
+ .fuchsia10
+ {
+ background-color: fuchsia;
+ height: 10px;
+ }
+
+ .yellow40
+ {
+ background-color: yellow;
+ height: 40px;
+ }
+
+ .aqua50
+ {
+ background-color: aqua;
+ height: 50px;
+ }
+ ]]>
+ </style>
+
+ </head>
+
+ <body>
+
+ <p>The next three boxes should be pixel-perfect identical.</p>
+
+ <div class="reference">
+ <div class="aqua40"></div>
+ <div class="fuchsia10"></div>
+ <div class="yellow40"></div>
+ <div class="aqua50"></div>
+ </div>
+
+ <div class="reference">
+ <div class="aqua40"></div>
+ <div class="fuchsia10"></div>
+ <div class="yellow40"></div>
+ <div class="aqua50"></div>
+ </div>
+
+ <div class="reference">
+ <div class="aqua40"></div>
+ <div class="fuchsia10"></div>
+ <div class="yellow40"></div>
+ <div class="aqua50"></div>
+ </div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012.xht
new file mode 100644
index 0000000000..4961f50e82
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-012.xht
@@ -0,0 +1,51 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: vertical-align: length on :first-line</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-10-06 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/012.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-pseudo-012-ref.xht" />
+
+ <meta name="flags" content="ahem may" />
+
+ <!--
+ vertical-align may apply to :first-line selector but is not required by the spec.
+ More info:
+ http://lists.w3.org/Archives/Public/public-css-testsuite/2013Oct/0000.html
+ -->
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ .container { font-size: 3.125em; }
+ .test, .control, .reference { border: solid black; width: 1em; }
+ .test, .control { font: 1em/1 Ahem; color: aqua; background: yellow; }
+ .a { background: fuchsia; }
+ .test:first-line, .control .first-line { vertical-align: 0.8em; }
+ .reference .ra { height: 0.8em; background: aqua; }
+ .reference .rb { height: 0.2em; background: fuchsia; }
+ .reference .rc { height: 0.8em; background: yellow; }
+ .reference .rd { height: 1.0em; background: aqua; }
+ </style>
+ </head>
+ <body>
+ <p>The next three boxes should be pixel-perfect identical.</p>
+ <div class="container">
+ <p class="test">
+ <span class="a">&Eacute;</span>
+ <span class="b">X</span>
+ </p>
+ <p class="control">
+ <span class="first-line"><span class="a">&Eacute;</span></span>
+ <span class="b">X</span>
+ </p>
+ <div class="reference">
+ <div class="ra"></div>
+ <div class="rb"></div>
+ <div class="rc"></div>
+ <div class="rd"></div>
+ </div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013-ref.xht
new file mode 100644
index 0000000000..b1594fb4b7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013-ref.xht
@@ -0,0 +1,37 @@
+<!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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ p#expected-results {margin: 3px;}
+
+ div
+ {
+ background-color: green;
+ height: 60px;
+ margin-bottom: 27px;
+ margin-left: 12px;
+ margin-top: 12px;
+ width: 195px;
+ }
+ ]]>
+ </style>
+
+ </head>
+
+ <body>
+
+ <p id="expected-results">Test passes if there are 2 green filled green rectangles and <strong>no red</strong>.</p>
+
+ <div></div>
+
+ <div></div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013.xht
new file mode 100644
index 0000000000..b8052b55ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-013.xht
@@ -0,0 +1,33 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: vertical-align: top on :first-line</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-10-06 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/013.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-pseudo-013-ref.xht" />
+
+ <meta name="flags" content="ahem may" />
+
+ <!--
+ vertical-align may apply to :first-line selector but is not required by the spec.
+ More info:
+ http://lists.w3.org/Archives/Public/public-css-testsuite/2013Oct/0000.html
+ -->
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ p#expected-results {margin: 3px;}
+ p { margin: 0.2em; }
+ .control, .test { font: 3.75em/1 Ahem; color: green; }
+ .first-line, .test:first-line { background: red; vertical-align: top; }
+ .inner { font-size: 1.25em; vertical-align: bottom; }
+ </style>
+ </head>
+ <body>
+ <p id="expected-results">Test passes if there are 2 green filled green rectangles and <strong>no red</strong>.</p>
+ <p class="control"><span class="first-line">X<span class="inner">&Eacute;</span>X</span></p>
+ <p class="test">X<span class="inner">&Eacute;</span>X</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-014.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-014.xht
new file mode 100644
index 0000000000..7df62248c1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-014.xht
@@ -0,0 +1,33 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: vertical-align: top on :first-line</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-10-06 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/014.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-pseudo-013-ref.xht" />
+
+ <meta name="flags" content="ahem may" />
+
+ <!--
+ vertical-align may apply to :first-line selector but is not required by the spec.
+ More info:
+ http://lists.w3.org/Archives/Public/public-css-testsuite/2013Oct/0000.html
+ -->
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ p#expected-results {margin: 3px;}
+ p { margin: 0.2em; }
+ .control, .test { font: 3.75em/1 Ahem; color: green; }
+ .first-line, .test:first-line { background: red; vertical-align: top; }
+ .inner { font-size: 1.25em; vertical-align: top; }
+ </style>
+ </head>
+ <body>
+ <p id="expected-results">Test passes if there are 2 green filled green rectangles and <strong>no red</strong>.</p>
+ <p class="control"><span class="first-line">X<span class="inner">&Eacute;</span>X</span></p>
+ <p class="test">X<span class="inner">&Eacute;</span>X</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015-ref.xht
new file mode 100644
index 0000000000..00d60969ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015-ref.xht
@@ -0,0 +1,37 @@
+<!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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 20px;
+ margin-left: 40px;
+ width: 140px;
+ }
+
+ div#first {margin-top: 96px}
+
+ div#second {margin-top: 80px;}
+ ]]>
+ </style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there are 2 unbroken green stripes.</p>
+
+ <div id="first"></div>
+
+ <div id="second"></div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015.xht
new file mode 100644
index 0000000000..c41f7763ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-015.xht
@@ -0,0 +1,25 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: vertical-align: bottom on :first-line</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-28 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/015.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-pseudo-015-ref.xht" />
+
+ <meta name="flags" content="ahem may" />
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ .control, .test { font: 1.25em/1 Ahem; color: green; margin: 0 2em; }
+ .first-line, .test:first-line { background: red; vertical-align: bottom; }
+ .inner { font-size: 5em; vertical-align: bottom; }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there are 2 unbroken green stripes.</p>
+ <p class="control"><span class="first-line">X<span class="inner">p</span>X</span></p>
+ <p class="test">X<span class="inner">p</span>X</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-016.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-016.xht
new file mode 100644
index 0000000000..3c0a911456
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-016.xht
@@ -0,0 +1,25 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: vertical-align: bottom on :first-line</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-06-03 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/first-line/016.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-line-pseudo-015-ref.xht" />
+
+ <meta name="flags" content="ahem may"/>
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ .control, .test { font: 1.25em/1 Ahem; color: green; margin: 0 2em; }
+ .first-line, .test:first-line { background: red; vertical-align: bottom; }
+ .inner { font-size: 5em; vertical-align: top; }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there are 2 unbroken green stripes.</p>
+ <p class="control"><span class="first-line">X<span class="inner">p</span>X</span></p>
+ <p class="test">X<span class="inner">p</span>X</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-017.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-017.xht
new file mode 100644
index 0000000000..9f43eca806
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-017.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: First-Line: Innermost vs outermost</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/001.xml" type="application/xhtml+xml"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/001.html" type="type/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <style type="text/css">
+ p:first-line { background: red; color: yellow; }
+ span { background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p><span>This should have a green background.</span></p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-018.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-018.xht
new file mode 100644
index 0000000000..e662ccfcf3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-018.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Basic :first-line test</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/002.xml" type="application/xhtml+xml"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/002.html" type="type/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ p:first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-019.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-019.xht
new file mode 100644
index 0000000000..3c29e0383a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-019.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Basic :first-line test</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/003.xml" type="application/xhtml+xml"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/003.html" type="type/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ :first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-020.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-020.xht
new file mode 100644
index 0000000000..d0c8ddcc0f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-020.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Basic :first-line test</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/004.xml" type="application/xhtml+xml"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/004.html" type="type/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ *:first-line { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-021.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-021.xht
new file mode 100644
index 0000000000..d071fc0004
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-021.xht
@@ -0,0 +1,18 @@
+<!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: First-Line: Inheritance</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-line/005.html" type="type/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht" />
+ <style type="text/css">
+ p { color: red; }
+ p:first-line { color: green; }
+ span { color: inherit; }
+ </style>
+ </head>
+ <body>
+ <p><span>This text should be green.</span></p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-README b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-README
new file mode 100644
index 0000000000..e4935fce19
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-pseudo-README
@@ -0,0 +1,9 @@
+Tests 001-011 may be invalid and need to be checked against CSS2.1.
+
+For tests 012-016 you will need Todd Fahrner's Ahem font, which you
+can download from:
+
+ http://www.hixie.ch/resources/fonts/
+
+Versions for Mac, Unix and Windows are available.
+
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-001.xht
new file mode 100644
index 0000000000..dcbe2f232a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: First-line pseudo-element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The :first-line pseudo-element matches the first line of a given element." />
+ <style type="text/css">
+ div:first-line
+ {
+ color: green;
+ width: 30%;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the first line of the text below is green, but the other lines are not.</p>
+ <div>Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-002.xht
new file mode 100644
index 0000000000..06fb857b6a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-002.xht
@@ -0,0 +1,27 @@
+<!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: First-line selector applicability to table cells</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The :first-line pseudo-element can be attached to a table-cell." />
+ <style type="text/css">
+ table
+ {
+ width: 100%
+ }
+ table td:first-line
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <table>
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-003.xht
new file mode 100644
index 0000000000..8686eeece7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-003.xht
@@ -0,0 +1,23 @@
+<!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: Table cells usage with :first-line</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The first line of a table-cell cannot be the first formatted line of an ancestor element." />
+ <style type="text/css">
+ table:first-line
+ {
+ background: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <table>
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-004.xht
new file mode 100644
index 0000000000..b19368d4ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-004.xht
@@ -0,0 +1,21 @@
+<!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: First-line and in-flow block level descendents</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The 'first formatted line' of an element can occur inside a block-level descendant in the same flow." />
+ <style type="text/css">
+ div:first-line
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-006.xht
new file mode 100644
index 0000000000..192e0678e4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-006.xht
@@ -0,0 +1,27 @@
+<!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: First-line and inline elements</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="First-line applies to inline elements." />
+ <style type="text/css">
+ span:first-line,
+ div:first-line
+ {
+ background: red;
+ }
+ div
+ {
+ display: inline;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <span>Filler Text</span>
+ <div>Filler Text</div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-007.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-007.xht
new file mode 100644
index 0000000000..0a53678901
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-007.xht
@@ -0,0 +1,24 @@
+<!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: First-line and font property</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="First-line allows font property." />
+ <style type="text/css">
+ #div1:first-line
+ {
+ font: 24px sans-serif;
+ }
+ #div2
+ {
+ font: 24px sans-serif;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div id="div1">Filler Text Filler Text</div>
+ <div id="div2">Filler Text Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-008.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-008.xht
new file mode 100644
index 0000000000..aeb3dd628a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-008.xht
@@ -0,0 +1,25 @@
+<!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: First-line and allowed properties</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="First-line allows letter-spacing, text-decoration, text-transform and line-height properties." />
+ <style type="text/css">
+ #div1:first-line, #div2
+ {
+ font: 24px sans-serif;
+ color: gray;
+ letter-spacing: 5px;
+ text-decoration: underline;
+ text-transform: capitalize;
+ line-height: 48px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div id="div1">filler text filler text filler text</div>
+ <div id="div2">Filler Text Filler Text Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-009.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-009.xht
new file mode 100644
index 0000000000..e32657f154
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-009.xht
@@ -0,0 +1,22 @@
+<!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: First-line and inapplicable properties</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="First-line does not allow the float, border or direction properties." />
+ <style type="text/css">
+ #div2:first-line
+ {
+ float: right;
+ border: 25px solid;
+ direction: rtl;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of text below look identical.</p>
+ <div id="div1">Filler Text Filler Text Filler Text</div>
+ <div id="div2">Filler Text Filler Text Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-010.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-010.xht
new file mode 100644
index 0000000000..2b3f173de3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-010.xht
@@ -0,0 +1,22 @@
+<!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: First-line after a BR</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-letter-selector-005-ref.html" />
+ <meta name="assert" content="The :first-line pseudo-element start tag is inserted right after the start tag of the block element." />
+ <style type="text/css">
+ div:first-line
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <br />Filler Text
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-011.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-011.xht
new file mode 100644
index 0000000000..906766035d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-011.xht
@@ -0,0 +1,30 @@
+<!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: Inline-block usage with :first-line</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The first line of an inline-block cannot be the first formatted line of an ancestor element." />
+ <style type="text/css">
+ span
+ {
+ display: inline-block;
+ }
+ div
+ {
+ background: white;
+ color: red;
+ }
+ div:first-line
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <span>Text<br />Text</span>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-012.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-012.xht
new file mode 100644
index 0000000000..7909fc3032
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-012.xht
@@ -0,0 +1,28 @@
+<!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: First-line selector applicability to table captions</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The :first-line pseudo-element can be attached to a table caption." />
+ <style type="text/css">
+ table
+ {
+ width: 100%
+ }
+ caption:first-line
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <table>
+ <caption>Filler Text</caption>
+ <tr>
+ <td></td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-013.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-013.xht
new file mode 100644
index 0000000000..ce1edbc5c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-013.xht
@@ -0,0 +1,24 @@
+<!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: First-line selector applicability to inline-blocks</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The :first-line pseudo-element can be attached to an inline-block." />
+ <style type="text/css">
+ div
+ {
+ display: inline-block;
+ }
+ div:first-line
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-014.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-014.xht
new file mode 100644
index 0000000000..e7ee8d18ed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-014.xht
@@ -0,0 +1,31 @@
+<!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: :first-line pseudo-element - text-transform</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="author" title="Magne Andersson" href="magne[dot]andersson(at)telia[dot]com" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#caps-prop" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#viewport" />
+
+ <style type="text/css"><![CDATA[
+ div:first-line
+ {
+ text-transform: uppercase;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the first line (and only the first line) of the latin paragraph below has all characters of each word in uppercase. This may still be true after changing the window size.</p>
+
+ <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse metus nibh, sodales at interdum a, commodo vitae nisl. Curabitur cursus rutrum urna et tempus. Proin purus lectus, lobortis id pharetra lacinia, porta in mauris. Nunc ultricies tincidunt velit, at sollicitudin tortor vulputate tempor. Cras consequat mauris ac neque tempor rhoncus. Quisque at nisi nisl. Integer convallis sodales sem quis euismod. Aliquam ornare purus libero, vel cursus nunc.</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-015.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-015.xht
new file mode 100644
index 0000000000..ca9ad0f324
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-015.xht
@@ -0,0 +1,35 @@
+<!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: :first-line pseudo-element - text-transform</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#caps-prop" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#viewport" />
+ <meta content="The :first-line pseudo-element can be attached to an unordered list because it is a block-level element. The &quot;first formatted line&quot; of an unordered list occurs inside its first list-item because it is a non-positioned and non-floated block-level descendant in the same flow. User agents may change the document's layout (preferred behavior but nonetheless optional) when the viewport is resized." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ ul:first-line
+ {
+ text-transform: uppercase;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the first line (and only the first line) of the first list-item (a latin paragraph starting with "Lorem ipsum...") below has all characters of each word in uppercase. This may still be true after changing the window size.</p>
+
+ <ul>
+ <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse metus nibh, sodales at interdum a, commodo vitae nisl. Curabitur cursus rutrum urna et tempus. Proin purus lectus, lobortis id pharetra lacinia, porta in mauris. Nunc ultricies tincidunt velit, at sollicitudin tortor vulputate tempor. Cras consequat mauris ac neque tempor rhoncus. Quisque at nisi nisl. Integer convallis sodales sem quis euismod. Aliquam ornare purus libero, vel cursus nunc.</li>
+
+ <li>Aliquam non velit et tellus dignissim tincidunt non eget metus. Quisque convallis dui odio. Sed eleifend, velit at consectetur interdum, nunc est feugiat nisi, nec tristique augue erat nec elit. Duis semper tellus non mi ornare gravida. Integer a tortor et ante ornare elementum. Nam tempor placerat nisi, sed interdum urna eleifend non. Sed fermentum nisl a arcu hendrerit sagittis. Aliquam suscipit laoreet justo, et tincidunt eros tempus eu.</li>
+ </ul>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-016.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-016.xht
new file mode 100644
index 0000000000..0bd663c93d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-016.xht
@@ -0,0 +1,34 @@
+<!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: Inline-block usage with :first-line</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="assert" content="The first line of an inline-block cannot be the first formatted line of an ancestor element." />
+ <style type="text/css">
+ .test
+ {
+ display: inline-block;
+ vertical-align:-100px;
+ }
+ div:first-line
+ {
+ background: green;
+ }
+ span, div:first-line
+ {
+ color: white;
+ }
+ div
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a box below and the word "FAIL" is not visible.</p>
+ <div>
+ <span class="test">&nbsp;<br />Filler Text</span><br /><span>FAIL</span>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-017.xht b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-017.xht
new file mode 100644
index 0000000000..8734730c03
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/first-line-selector-017.xht
@@ -0,0 +1,45 @@
+<!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>
+
+ <!--
+ Inspired by
+ Bug 8253: Can't dynamically add ::first-line / ::first-letter style
+ https://bugzilla.mozilla.org/show_bug.cgi?id=8253
+ -->
+
+ <title>CSS Test: First-line - dynamic :hover pseudo-class</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" title="5.12.1 The :first-line pseudo-element" />
+
+ <meta content="interact" name="flags" />
+ <meta content="The :first-line pseudo-element can be used and will apply onto an :hover pseudo-class." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: white;
+ color: black;
+ font-size: 60px;
+ }
+
+ div:hover:first-line
+ {
+ background-color: blue;
+ color: white;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if "Text sample" becomes white on blue background when the mouse cursor hovers over it or hovers over its right-hand side.</p>
+
+ <div>Text sample</div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-001.xht b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-001.xht
new file mode 100644
index 0000000000..dc18f911fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-001.xht
@@ -0,0 +1,40 @@
+<!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: :focus pseudo-class - adjacent sibling selector</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/html4/interact/forms.html#h-17.11" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="An HTML 4 textarea must be focused in order to enter text into it. The :focus pseudo-class applies to a textarea while it has the focus (accepts keyboard events or other forms of text input)." />
+
+ <style type="text/css"><![CDATA[
+ span
+ {
+ color: white;
+ font-size: 150%;
+ }
+
+ textarea:focus + span
+ {
+ color: green;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Enter in the text field below with the pointing device or with the keyboard (with the tab key or with the "T" accesskey) and then enter some text into it. A message in green should then have appeared on its right-hand side indicating that such text field has received focus. In order to pass this test, the tester should not have to move the pointing device outside the text field.</p>
+
+ <div>
+ <textarea cols="32" rows="4" accesskey="T" tabindex="1"></textarea> <span>Focus received by text field</span>
+ </div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-002.xht b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-002.xht
new file mode 100644
index 0000000000..543e31d33b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-002.xht
@@ -0,0 +1,39 @@
+<!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: :focus pseudo-class - adjacent sibling selector</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/html4/interact/forms.html#h-17.11" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="An HTML 4 text input control must be focused in order to enter text into it. The :focus pseudo-class applies to a text input control while it has the focus (accepts keyboard events or other forms of text input)." />
+
+ <style type="text/css"><![CDATA[
+ span
+ {
+ color: white;
+ }
+
+ input:focus + span
+ {
+ color: green;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Enter in the text field below with the pointing device or with the keyboard (with the tab key or with the "T" accesskey) and then enter some text into it. A message in green should then have appeared on its right-hand side indicating that such text field has received focus. In order to pass this test, the tester should not have to move the pointing device outside the text field.</p>
+
+ <div>
+ <input type="text" accesskey="T" tabindex="1" /> <span>Focus received by text field</span>
+ </div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-003.xht b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-003.xht
new file mode 100644
index 0000000000..d9942331cb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/focus-pseudo-class-003.xht
@@ -0,0 +1,42 @@
+<!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: :focus pseudo-class - adjacent sibling selector</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/html4/interact/forms.html#h-17.11" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="bookmark" href="http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/C15.html#C15-examples" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="An HTML 4 radio button must receive focus state when clicking on it or when selecting it with the keyboard. The :focus pseudo-class applies to a radio button while it has the focus (accepts keyboard events or other forms of input)." />
+
+ <style type="text/css"><![CDATA[
+ input[type="radio"]
+ {
+ height: 20px;
+ width: 60px;
+ }
+
+ input[type="radio"]:focus + label
+ {
+ background-color: yellow;
+ color: black;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>With the pointing device (like a mouse left-button click) or with the keyboard (with the tab key or with the "T" accesskey), activate the radio button below. The words "Text sample" on its right-hand side should then have become highlighted in yellow. In order to pass this test, the tester should not have to move the pointing device out of the radio button in order to see the yellow highlighting.</p>
+
+ <div>
+ <input type="radio" id="test" accesskey="T" /> <label for="test">Text sample</label>
+ </div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/focus-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/focus-selector-001.xht
new file mode 100644
index 0000000000..75e021d929
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/focus-selector-001.xht
@@ -0,0 +1,22 @@
+<!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: Focus selector on controls</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Focus pseudo-class matches any element which has input focus." />
+ <style type="text/css">
+ textarea:focus
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below turns green when the element containing the text has focus.</p>
+ <div>
+ <textarea cols="80" rows="3">Filler Text</textarea>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/grouping-002-notref.xht b/testing/web-platform/tests/css/CSS2/selectors/grouping-002-notref.xht
new file mode 100644
index 0000000000..f12986fd2f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/grouping-002-notref.xht
@@ -0,0 +1,12 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<blockquote>Filler Text</blockquote>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/grouping-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/grouping-002-ref.xht
new file mode 100644
index 0000000000..aa8ce6ec22
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/grouping-002-ref.xht
@@ -0,0 +1,20 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+blockquote {
+ color: green;
+}
+div {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<blockquote>Filler Text</blockquote>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/grouping-002.xht b/testing/web-platform/tests/css/CSS2/selectors/grouping-002.xht
new file mode 100644
index 0000000000..8817411460
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/grouping-002.xht
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Condensing selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#grouping" />
+ <link rel="match" href="grouping-002-ref.xht"/>
+ <link rel="mismatch" href="grouping-002-notref.xht"/>
+ <meta name="assert" content="Selectors can be condensed into a single selector." />
+ <style type="text/css">
+ div, blockquote
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <blockquote>Filler Text</blockquote>
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/hover-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-001.xht
new file mode 100644
index 0000000000..1654e1760e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: Hover selector on a simple element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="The :hover pseudo-class selects an element which is being hovered by the mouse cursor." />
+ <style type="text/css">
+ div:hover
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below turns green when it is hovered over.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/hover-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-002.xht
new file mode 100644
index 0000000000..2401168a11
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-002.xht
@@ -0,0 +1,23 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: :hover and font-weight</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/hover/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact"/>
+ <style type="text/css">
+ p { color: blue; }
+ .serif { font: 1em serif; }
+ .sansSerif { font: 1em sans-serif; }
+ .monospace { font: 1em monospace; }
+ .test:hover { font-weight: bold; }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if each "Text sample" becomes bold when hovering over it</p>
+ <p> <span class="serif test">Text sample</span> </p>
+ <p> <span class="sansSerif test">Text sample</span> </p>
+ <p> <span class="monospace test">Text sample</span> </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/hover-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-003.xht
new file mode 100644
index 0000000000..df7543af0a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/hover-selector-003.xht
@@ -0,0 +1,24 @@
+<!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" lang="en">
+ <head>
+ <title>CSS Test: :hover and font-weight</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/hover/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
+ <meta name="flags" content="interact"/>
+ <style type="text/css">
+ p { color: blue; }
+ p + p { text-align: center; }
+ .serif { font: 1em serif; }
+ .sansSerif { font: 1em sans-serif; }
+ .monospace { font: 1em monospace; }
+ .test:hover { font-weight: bold; }
+ </style>
+ </head>
+ <body>
+ <p>When you hover over these lines they should go bold:</p>
+ <p>| <span class="serif test">test test</span> |</p>
+ <p>| <span class="sansSerif test">test test</span> |</p>
+ <p>| <span class="monospace test">test test</span> |</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/html-case-sensitivity-001.html b/testing/web-platform/tests/css/CSS2/selectors/html-case-sensitivity-001.html
new file mode 100644
index 0000000000..d0d7d6db28
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/html-case-sensitivity-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: HTML case sensitivity - Simple selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+ <link rel="match" href="../reference/filler-text-below-green.xht">
+ <meta name="flags" content="HTMLonly">
+ <meta name="assert" content="Simple selectors are not case sensitive in HTML.">
+ <style type="text/css">
+ DIV
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/id-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/id-selector-001.xht
new file mode 100644
index 0000000000..29490739b1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/id-selector-001.xht
@@ -0,0 +1,20 @@
+<!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: Simple ID selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="ID selector matches appropriate element." />
+ <style type="text/css">
+ #div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/id-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/id-selector-002.xht
new file mode 100644
index 0000000000..706e8e84d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/id-selector-002.xht
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: ID selector syntax - Begins with hyphen</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht" />
+ <meta name="assert" content="Identifier selectors starting with a hyphen are valid." />
+ <style type="text/css">
+ div
+ {
+ color: red;
+ }
+ #-div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="-div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/id-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/id-selector-004.xht
new file mode 100644
index 0000000000..66d8c517e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/id-selector-004.xht
@@ -0,0 +1,21 @@
+<!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: Invalid ID selector syntax - white space between # and id</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="White space is not allowed between # and identifier for selector." />
+ <style type="text/css">
+ # div1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/id-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/id-selector-005.xht
new file mode 100644
index 0000000000..0e9454cb9e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/id-selector-005.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Invalid ID selector syntax - Begins with numerals</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="Identifier selectors are invalid if it begins with a numeral." />
+ <style type="text/css">
+ #1digit
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="1digit">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/id-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/id-selector-006.xht
new file mode 100644
index 0000000000..319b63a03d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/id-selector-006.xht
@@ -0,0 +1,24 @@
+<!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: Simple ID selectors specificity over attribute selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="ID selectors trump attribute selectors in specificity." />
+ <style type="text/css">
+ div#div1
+ {
+ color: green;
+ }
+ div[id=div1]
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001-ref.xht
new file mode 100644
index 0000000000..b415f4aa6b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001-ref.xht
@@ -0,0 +1,18 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if only the first line of "Filler Text" below is green.</p>
+<p class="green">Filler Text</p>
+<p>Filler Text</p>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001.xht
new file mode 100644
index 0000000000..8a2c8f165f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-001.xht
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Selectors :lang pseudo-class</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="lang-selector-001-ref.xht"/>
+ <meta name="assert" content="The :lang pseudo-class selector matches any element with a matching lang attribute." />
+ <style type="text/css">
+ p:lang(en)
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if only the first line of "Filler Text" below is green.</p>
+ <p lang="en-us">Filler Text</p>
+ <p>Filler Text</p>
+ <div lang="en-us">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-002.xht
new file mode 100644
index 0000000000..b4568dc564
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-002.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Empty :lang selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="Language identifier cannot be empty." />
+ <style type="text/css">
+ :lang(), div
+ {
+ color:red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div lang="en-us">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-003.xht
new file mode 100644
index 0000000000..138c4e1ee5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-003.xht
@@ -0,0 +1,20 @@
+<!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: Invalid language name for :lang selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The language identifier in the :lang selector doesn't have to be a valid language name." />
+ <style type="text/css">
+ :lang(foo), div
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004-ref.html b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004-ref.html
new file mode 100644
index 0000000000..6f57dfc391
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004-ref.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<style>
+ div {
+ color: green;
+ }
+</style>
+<body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text
+ <p>Filler Text</p>
+ </div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004.xht
new file mode 100644
index 0000000000..8bbfc83960
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-004.xht
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Inherited lang attribute selected</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="lang-selector-004-ref.html" />
+ <meta name="assert" content="Lang attribute is inherited and lang selector works on children." />
+ <style type="text/css">
+ :lang(fr)
+ {
+ color: green
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div lang="fr">Filler Text
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht
new file mode 100644
index 0000000000..916028cc6b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht
@@ -0,0 +1,25 @@
+<!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: Lang selector and document language set via server's content-language</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="../reference/filler-text-below-green.xht" />
+ <meta name="flags" content="http" />
+ <meta name="assert" content="Lang attribute is selectable when specified by HTTP header." />
+ <style type="text/css">
+ #prerequisite:lang(fr)
+ {
+ display: none;
+ }
+ div:lang(fr)
+ {
+ color: green
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht.headers b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht.headers
new file mode 100644
index 0000000000..c2178e73ab
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-005.xht.headers
@@ -0,0 +1 @@
+Content-Language: fr
diff --git a/testing/web-platform/tests/css/CSS2/selectors/lang-selector-006.xht b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-006.xht
new file mode 100644
index 0000000000..77fb14811a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/lang-selector-006.xht
@@ -0,0 +1,21 @@
+<!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: Lang selector and document language set via meta tag</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#lang" />
+ <link rel="match" href="../reference/filler-text-below-green.xht" />
+ <meta http-equiv="content-language" content="fr" />
+ <meta name="assert" content="Lang attribute is selectable when specified in a meta tag." />
+ <style type="text/css">
+ div:lang(fr)
+ {
+ color: green
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-001.xht
new file mode 100644
index 0000000000..1e55196b3e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-001.xht
@@ -0,0 +1,26 @@
+<!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: Visited and link simple case</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Link matches any link which has not been visited. Visited matches a link which has been visited." />
+ <style type="text/css">
+ :link
+ {
+ color: green;
+ }
+ :visited
+ {
+ color: orange;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" link below is green before it is navigated to and orange after it has been navigated to.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-002.xht
new file mode 100644
index 0000000000..2d743cf70c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-002.xht
@@ -0,0 +1,26 @@
+<!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: Visited and link in the same selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Link and visited are mutually exclusive states." />
+ <style type="text/css">
+ :link:visited
+ {
+ background-color: red;
+ }
+ :visited:link
+ {
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page, even after navigating to the "Filler Text" link below.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-003.xht
new file mode 100644
index 0000000000..b20ff9ad2e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-003.xht
@@ -0,0 +1,22 @@
+<!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: Active and link interaction</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Active and link are not mutually exclusive." />
+ <style type="text/css">
+ :link:active
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green while the text is activated.</p>
+ <div>
+ <a href="/404error/">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-004.xht
new file mode 100644
index 0000000000..6eb2d086ad
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-004.xht
@@ -0,0 +1,22 @@
+<!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: Active and visited interaction</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Active and visited are not mutually exclusive." />
+ <style type="text/css">
+ :visited:active
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green while the text is activated. (Note: some user agents require you navigate the "Filler Text" link before running this test.)</p>
+ <div>
+ <a href="./link-visited-selector-004.htm">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-005.xht
new file mode 100644
index 0000000000..d87c11b727
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/link-visited-selector-005.xht
@@ -0,0 +1,26 @@
+<!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: Visited links may return to unvisited</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes" />
+ <meta name="flags" content="interact may" />
+ <meta name="assert" content="A user agent may treat all links as unvisited." />
+ <style type="text/css">
+ :visited
+ {
+ color: green;
+ }
+ :link
+ {
+ color: blue;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is blue or green.</p>
+ <div>
+ <a href="./link-visited-selector-005.htm">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-001.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-001.xht
new file mode 100644
index 0000000000..daa3b72712
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-001.xht
@@ -0,0 +1,20 @@
+<!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: Pseudo elements before simple selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="A pseudo-selector cannot be followed by a simple selector." />
+ <style type="text/css">
+ p:first-line p, #p1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <p id="p1">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-002.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-002.xht
new file mode 100644
index 0000000000..91fc609704
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-002.xht
@@ -0,0 +1,20 @@
+<!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: First-line pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="First-line is case-insensitive." />
+ <style type="text/css">
+ div:FiRSt-LiNe
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-003.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-003.xht
new file mode 100644
index 0000000000..90e1dbf131
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-003.xht
@@ -0,0 +1,22 @@
+<!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: Multiple pseudo-classes - hover and active</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Hover and active pseudo-classes can be applied at the same time." />
+ <style type="text/css">
+ a:active:hover
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green when it is hovered over and activated.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-005.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-005.xht
new file mode 100644
index 0000000000..c86c70ae1f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-005.xht
@@ -0,0 +1,44 @@
+<!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: Pseudo-classes and layout</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact may" />
+ <meta name="assert" content="User agents are not required to reflow a currently displayed document due to pseudo-class transitions." />
+ <style type="text/css">
+ div
+ {
+ float: left;
+ width: 60px;
+ height: 60px;
+ }
+ #div1
+ {
+ background: blue;
+ }
+ #div1:hover
+ {
+ width: 300px;
+ height: 300px;
+ }
+ #div3
+ {
+ background: purple;
+ }
+ #div2
+ {
+ clear: left;
+ background: orange;
+ }
+ </style>
+ </head>
+ <body>
+ <p>PREREQUISITE: Hover over the blue box.</p>
+ <p>Test passes if the blue square width and height increase significantly.</p>
+ <p>When this happens, the purple and orange squares may or may not reflow.</p>
+ <div id="div1"></div>
+ <div id="div3"></div>
+ <div id="div2"></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-006.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-006.xht
new file mode 100644
index 0000000000..b8c3b419de
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-006.xht
@@ -0,0 +1,20 @@
+<!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: First-letter pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="first-letter-selector-001-ref.html" />
+ <meta name="assert" content="First-letter is case-insensitive." />
+ <style type="text/css">
+ div:fIrSt-LeTter
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the letter "F" below is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-007.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-007.xht
new file mode 100644
index 0000000000..4c7df356b2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-007.xht
@@ -0,0 +1,20 @@
+<!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: First-child pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="universal-selector-002-ref.xht" />
+ <meta name="assert" content="First-child is case-insensitive." />
+ <style type="text/css">
+ div:fiRsT-cHiLd
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <div>Filler Text</div>
+ <p>Test passes if the "Filler Text" above is green.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-008-ref.html b/testing/web-platform/tests/css/CSS2/selectors/pseudo-008-ref.html
new file mode 100644
index 0000000000..8297dc3d74
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-008-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Reftest Reference</title>
+<body>
+ <p>Test passes if the words "Filler Text" are below.</p>
+ <div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-008.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-008.xht
new file mode 100644
index 0000000000..95868e6bf5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-008.xht
@@ -0,0 +1,24 @@
+<!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: After and before case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="pseudo-008-ref.html" />
+ <meta name="assert" content="After and before are case-insensitive." />
+ <style type="text/css">
+ div:bEfOre
+ {
+ content: "Filler";
+ }
+ div:aFtEr
+ {
+ content: "Text";
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the words "Filler Text" are below.</p>
+ <div> </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-009.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-009.xht
new file mode 100644
index 0000000000..1154502b91
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-009.xht
@@ -0,0 +1,23 @@
+<!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: Pseudo-class ':visited' case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="The ':visited' pseudo-class' is case-insensitive." />
+ <style type="text/css">
+ :ViSiTed
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>PREREQUSITE: Navigate to the "Filler Text" link below.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <a href="./pseudo-009.htm">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-010.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-010.xht
new file mode 100644
index 0000000000..6e49896a15
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-010.xht
@@ -0,0 +1,22 @@
+<!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: Active pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Active is case-insensitive." />
+ <style type="text/css">
+ :AcTiVe
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green when the text is activated.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-011.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-011.xht
new file mode 100644
index 0000000000..dc0f026b8a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-011.xht
@@ -0,0 +1,22 @@
+<!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: Hover pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Hover is case-insensitive." />
+ <style type="text/css">
+ a:hOveR
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green when the text is hovered over.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-012.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-012.xht
new file mode 100644
index 0000000000..410052d60a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-012.xht
@@ -0,0 +1,22 @@
+<!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: Focus pseudo-element case sensitivity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Focus is case-insensitive." />
+ <style type="text/css">
+ a:fOcUs
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green when the text has focus.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-013.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-013.xht
new file mode 100644
index 0000000000..24894c9fb0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-013.xht
@@ -0,0 +1,22 @@
+<!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: Multiple pseudo-classes - Link, first-child, hover</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Link, first-child, and hover can all be applied at the same time." />
+ <style type="text/css">
+ div :link:first-child:hover
+ {
+ color:green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below changes to green when the text is hovered over.</p>
+ <div>
+ <a href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-014.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-014.xht
new file mode 100644
index 0000000000..e7d6fc439b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-014.xht
@@ -0,0 +1,20 @@
+<!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: Pseudo elements before attribute selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="A pseudo-selector cannot be followed by an attribute selector." />
+ <style type="text/css">
+ p:first-line[id="p1"], #p1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <p id="p1">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-015.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-015.xht
new file mode 100644
index 0000000000..e484191ca8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-015.xht
@@ -0,0 +1,20 @@
+<!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: Pseudo elements before child selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="A pseudo-selector cannot be followed by a child selector." />
+ <style type="text/css">
+ p:first-line>p, #p1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <p id="p1">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/pseudo-016.xht b/testing/web-platform/tests/css/CSS2/selectors/pseudo-016.xht
new file mode 100644
index 0000000000..21b4fb1dbc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/pseudo-016.xht
@@ -0,0 +1,20 @@
+<!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: Pseudo elements not the last (invalid) - Sibling selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="A pseudo-selector cannot be followed by a sibling selector." />
+ <style type="text/css">
+ p:first-line+p, #p1
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <p id="p1">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-001-ref.xht
new file mode 100644
index 0000000000..c20cb790b0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-001-ref.xht
@@ -0,0 +1,25 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+body * {
+ margin: 1em 0;
+ font: inherit;
+ display: block;
+ color: white;
+ background: green;
+}
+</style>
+</head>
+<body>
+<p>This text should be green. (element)</p>
+<div>This text should be green. (class)</div>
+<div>This text should be green. (id)</div>
+<div>This text should be green. (child)</div>
+<div>This text should be green. (descendant)</div>
+<blockquote>This text should be green. (sibling)</blockquote>
+<div>This text should be green. (attribute)</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-001.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-001.xht
new file mode 100644
index 0000000000..68f462e288
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-001.xht
@@ -0,0 +1,29 @@
+<!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: CSS Selectors (basic)</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#pattern-matching" />
+ <link rel="match" href="selectors-001-ref.xht"/>
+ <style type="text/css">
+ body * { background: red; color: yellow; margin: 1em 0; font: inherit; display: block; }
+ p { background: green; color: white; }
+ .class { background: green; color: white; }
+ #id { background: green; color: white; }
+ div span { background: green; color: white; }
+ div > em { background: green; color: white; }
+ div + blockquote { background: green; color: white; }
+ [title=attribute] { background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p>This text should be green. (element)</p>
+ <div class="class">This text should be green. (class)</div>
+ <div id="id">This text should be green. (id)</div>
+ <div><em>This text should be green. (child)</em></div>
+ <div><span>This text should be green. (descendant)</span></div>
+ <blockquote>This text should be green. (sibling)</blockquote>
+ <div title="attribute">This text should be green. (attribute)</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-002-ref.xht
new file mode 100644
index 0000000000..b72b47f209
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-002-ref.xht
@@ -0,0 +1,16 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+html {
+ color: white;
+ background: green;
+}
+</style>
+</head>
+<body>
+<p>This page should be green with no red present.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-002.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-002.xht
new file mode 100644
index 0000000000..7255fde461
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-002.xht
@@ -0,0 +1,17 @@
+<!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: CSS Selectors (basic tests)</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#type-selectors" />
+ <link rel="match" href="selectors-002-ref.xht"/>
+ <style type="text/css">
+ * { color: white ! important; background: green ! important; }
+ p { color: yellow; background: red; }
+ </style>
+ </head>
+ <body>
+ <p>This page should be green with no red present.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001-ref.xht
new file mode 100644
index 0000000000..f5f0a79eaf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+p {
+ color: green;
+ background: white;
+}
+</style>
+</head>
+<body>
+<p>This should be green.</p>
+<p>This should be green.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001.xht b/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001.xht
new file mode 100644
index 0000000000..f9864d1d62
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/selectors-parsing-001.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: CSS: Selector Parsing and Invalid Pseudo-Elements</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/parsing/001.xml" type="application/xhtml+xml"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors" />
+ <link rel="match" href="selectors-parsing-001-ref.xht"/>
+ <style type="text/css">
+ p { background: white; color: green; }
+ p:invalidPseudoClass, p.test1 { color: yellow; background: red; }
+ p::invalidPseudoElement, p.test2 { color: yellow; background: red; }
+ </style>
+ </head>
+ <body>
+ <p class="test1">This should be green.</p>
+ <p class="test2">This should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001-ref.xht
new file mode 100644
index 0000000000..e8ab2814f2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the first line of "Filler Text" below is green, but the second line of "Filler Text" below is black.</p>
+<div class="green">Filler Text</div>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001.xht
new file mode 100644
index 0000000000..bee2a6ad41
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: Simple sibling selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="sibling-selector-001-ref.xht"/>
+ <meta name="assert" content="Sibling selector only applies to immediate siblings." />
+ <style type="text/css">
+ p + div
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the first line of "Filler Text" below is green, but the second line of "Filler Text" below is black.</p>
+ <div>Filler Text</div>
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-002.xht
new file mode 100644
index 0000000000..296a872fdd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-002.xht
@@ -0,0 +1,21 @@
+<!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: Sibling selector with non-element node</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Sibling selector only applies to immediate siblings ignoring non-element nodes." />
+ <style type="text/css">
+ p + div
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <!--Comment-->
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003-ref.xht
new file mode 100644
index 0000000000..746bbd867e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the first line of "Filler Text" below is black, but the second line of "Filler Text" below is green.</p>
+<div>Filler Text</div>
+<div class="green">Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003.xht
new file mode 100644
index 0000000000..16b790ef88
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/sibling-selector-003.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Sibling selector with non element node</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors" />
+ <link rel="match" href="sibling-selector-003-ref.xht"/>
+ <meta name="assert" content="Sibling selector only applies to immediate siblings ignoring text nodes." />
+ <style type="text/css">
+ p + div
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the first line of "Filler Text" below is black, but the second line of "Filler Text" below is green.</p>
+ Filler Text
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-green.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-green.png
new file mode 100644
index 0000000000..b98ca0ba0a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-lime.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-lime.png
new file mode 100644
index 0000000000..cb397fb090
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-maroon.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-maroon.png
new file mode 100644
index 0000000000..3f86b07219
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-maroon.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-navy.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-navy.png
new file mode 100644
index 0000000000..9b9a03955b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-navy.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-red.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-red.png
new file mode 100644
index 0000000000..6bd73ac101
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/1x1-white.png b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-white.png
new file mode 100644
index 0000000000..dd43faec54
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/1x1-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/60x60-gg-rr.png b/testing/web-platform/tests/css/CSS2/selectors/support/60x60-gg-rr.png
new file mode 100644
index 0000000000..84f5b2a4f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/60x60-gg-rr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/60x60-green.png b/testing/web-platform/tests/css/CSS2/selectors/support/60x60-green.png
new file mode 100644
index 0000000000..b3c8cf3eb4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/60x60-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/a-green.css b/testing/web-platform/tests/css/CSS2/selectors/support/a-green.css
new file mode 100644
index 0000000000..b0dbb071d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/a-green.css
@@ -0,0 +1 @@
+.a { color: green; }
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/b-green.css b/testing/web-platform/tests/css/CSS2/selectors/support/b-green.css
new file mode 100644
index 0000000000..a0473f5ca2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/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/selectors/support/blue15x15.png b/testing/web-platform/tests/css/CSS2/selectors/support/blue15x15.png
new file mode 100644
index 0000000000..89de32fdb8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/blue15x15.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/c-red.css b/testing/web-platform/tests/css/CSS2/selectors/support/c-red.css
new file mode 100644
index 0000000000..d4ba5c64e9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/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/selectors/support/cat.png b/testing/web-platform/tests/css/CSS2/selectors/support/cat.png
new file mode 100644
index 0000000000..85dd732481
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/cat.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/diamond.png b/testing/web-platform/tests/css/CSS2/selectors/support/diamond.png
new file mode 100644
index 0000000000..51112efc7c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/diamond.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/green15x15.png b/testing/web-platform/tests/css/CSS2/selectors/support/green15x15.png
new file mode 100644
index 0000000000..51741584a0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/green15x15.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rgr-grg.png b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rgr-grg.png
new file mode 100644
index 0000000000..9b88fbd811
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rgr-grg.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rrg-rgg.png b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rrg-rgg.png
new file mode 100644
index 0000000000..fcf4f3fd7d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-grg-rrg-rgg.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/pattern-rgr-grg-rgr.png b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-rgr-grg-rgr.png
new file mode 100644
index 0000000000..d454e3a630
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-rgr-grg-rgr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/pattern-tr.png b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-tr.png
new file mode 100644
index 0000000000..8b4b25364e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/pattern-tr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/ring.png b/testing/web-platform/tests/css/CSS2/selectors/support/ring.png
new file mode 100644
index 0000000000..061bb94eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/ring.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/square-purple.png b/testing/web-platform/tests/css/CSS2/selectors/support/square-purple.png
new file mode 100644
index 0000000000..0f522d7872
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/square-purple.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/square-teal.png b/testing/web-platform/tests/css/CSS2/selectors/support/square-teal.png
new file mode 100644
index 0000000000..e567f51b91
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/square-teal.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/square-white.png b/testing/web-platform/tests/css/CSS2/selectors/support/square-white.png
new file mode 100644
index 0000000000..5853cbb238
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/square-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-blue.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-blue.png
new file mode 100644
index 0000000000..bf2759634d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-blue.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-green.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-green.png
new file mode 100644
index 0000000000..0aa79b0c86
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-lime.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-lime.png
new file mode 100644
index 0000000000..55fd7fdaed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-orange.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-orange.png
new file mode 100644
index 0000000000..d3cd498b52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-orange.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-red.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-red.png
new file mode 100644
index 0000000000..1caf25c992
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-white.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-white.png
new file mode 100644
index 0000000000..1a7d4323d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/swatch-yellow.png b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-yellow.png
new file mode 100644
index 0000000000..1591aa0e2e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/swatch-yellow.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/test-bl.png b/testing/web-platform/tests/css/CSS2/selectors/support/test-bl.png
new file mode 100644
index 0000000000..904e24e996
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/test-bl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/test-br.png b/testing/web-platform/tests/css/CSS2/selectors/support/test-br.png
new file mode 100644
index 0000000000..f413ff5c1a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/test-br.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/test-outer.png b/testing/web-platform/tests/css/CSS2/selectors/support/test-outer.png
new file mode 100644
index 0000000000..82eeace7fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/test-outer.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/test-tl.png b/testing/web-platform/tests/css/CSS2/selectors/support/test-tl.png
new file mode 100644
index 0000000000..f6ac0ef7e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/test-tl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/support/test-tr.png b/testing/web-platform/tests/css/CSS2/selectors/support/test-tr.png
new file mode 100644
index 0000000000..59843ae54b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/support/test-tr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/selectors/type-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/type-selector-001-ref.xht
new file mode 100644
index 0000000000..679c7af166
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/type-selector-001-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+.green {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if the "Filler Text" below is green.</p>
+<blockquote class="green">Filler Text</blockquote>
+<div class="green">Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/type-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/type-selector-001.xht
new file mode 100644
index 0000000000..a3e3419b95
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/type-selector-001.xht
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Type selectors</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#type-selectors" />
+ <link rel="match" href="type-selector-001-ref.xht"/>
+ <meta name="assert" content="Basic type selectors apply to each type." />
+ <style type="text/css">
+ div, blockquote
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <blockquote>Filler Text</blockquote>
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-notref.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-notref.xht
new file mode 100644
index 0000000000..3442506503
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-notref.xht
@@ -0,0 +1,11 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+<p>Test passes if all text on this page is green.</p>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-ref.xht
new file mode 100644
index 0000000000..f23692ee2f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001-ref.xht
@@ -0,0 +1,16 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+body {
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>Test passes if all text on this page is green.</p>
+<div>Filler Text</div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001.xht
new file mode 100644
index 0000000000..dda83a2dca
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-001.xht
@@ -0,0 +1,21 @@
+<!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: Universal selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector" />
+ <link rel="match" href="universal-selector-001-ref.xht"/>
+ <link rel="mismatch" href="universal-selector-001-notref.xht"/>
+ <meta name="assert" content="The universal selector applies to all elements." />
+ <style type="text/css">
+ *
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if all text on this page is green.</p>
+ <div>Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-notref.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-notref.xht
new file mode 100644
index 0000000000..cbadefe14e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-notref.xht
@@ -0,0 +1,12 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+</head>
+<body>
+ <div>Filler Text</div>
+ <p>Test passes if there is a blue border around the viewport and
+ around "Filler Text" above.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-ref.xht
new file mode 100644
index 0000000000..10c611c97c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002-ref.xht
@@ -0,0 +1,17 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+html, div {
+ border: 10px solid blue;
+}
+</style>
+</head>
+<body>
+ <div>Filler Text</div>
+ <p>Test passes if there is a blue border around the viewport and
+ around "Filler Text" above.</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002.xht
new file mode 100644
index 0000000000..27150387a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-002.xht
@@ -0,0 +1,23 @@
+<!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: Implied universal selector for pseudo selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector" />
+ <link rel="match" href="universal-selector-002-ref.xht"/>
+ <link rel="mismatch" href="universal-selector-002-notref.xht"/>
+ <meta name="assert" content="If the universal selector is not the only component of a simple pseudo selector the '*' can be omitted." />
+ <style type="text/css">
+ :first-child
+ {
+ /* This needs to be a non-inherited property, as :root always matches :first-child */
+ border: 10px solid blue;
+ }
+ </style>
+ </head>
+ <body>
+ <div>Filler Text</div>
+ <p>Test passes if there is a blue border around the viewport and
+ around "Filler Text" above.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-003.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-003.xht
new file mode 100644
index 0000000000..50ab88948a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-003.xht
@@ -0,0 +1,20 @@
+<!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: Implied universal selector for class selector</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="If the universal selector is not the only component of a simple class selector the * can be omitted." />
+ <style type="text/css">
+ .div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-004.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-004.xht
new file mode 100644
index 0000000000..82da04eeb1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-004.xht
@@ -0,0 +1,20 @@
+<!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: Implied universal selector for ID</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="If the universal selector is not the only component of a simple id selector the * can be omitted." />
+ <style type="text/css">
+ #div1
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="div1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005-ref.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005-ref.xht
new file mode 100644
index 0000000000..9309e974dc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005-ref.xht
@@ -0,0 +1,21 @@
+<!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 Reftest Reference</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
+<style type="text/css">
+body {
+ margin-left: 100px;
+}
+li {
+ list-style-image: url("support/cat.png");
+}
+</style>
+</head>
+<body>
+<p>Test passes if there is a <strong>cat image</strong>.</p>
+<ul>
+ <li>&nbsp;</li>
+</ul>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005.xht b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005.xht
new file mode 100644
index 0000000000..1946e4f25e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/selectors/universal-selector-005.xht
@@ -0,0 +1,35 @@
+<!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: universal selector - list-style-image</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" />
+ <link rel="author" title="Mark McKenzie-Bell" href="mailto:info@temerity.co.uk" />
+ <link rel="author" title="Alexander Dawson" href="mailto:alexander_dawson@hotmail.com" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-image" />
+ <link rel="match" href="universal-selector-005-ref.xht"/>
+ <meta name="flags" content="image" />
+ <meta name="assert" content="The universal selector matches the name of any element type. 'list-style-image' applies to elements with 'display: list-item'." />
+
+ <style type="text/css"><![CDATA[
+ body {margin-left: 100px;}
+ * {list-style-image: url("support/cat.png");}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a <strong>cat image</strong>.</p>
+
+ <ul>
+ <li>&nbsp;</li>
+ </ul>
+
+ </body>
+</html>