summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/cascade
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/cascade
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/cascade')
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-001.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-002.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-003.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-004.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-005.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-006.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-007.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-008.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-009.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-010.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/at-import-011.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-001.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-002.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-003.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-004.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-005.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-006.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-007.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-008.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-009.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-009a-ref.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-009a.xht35
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-009b-ref.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-009b.xht35
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-010.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-011.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-012-ref.xht22
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-012.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-001.xht32
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-002.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/default-stylesheet-001.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-001.xht37
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-002.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-003.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-004.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-005.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-006.xht33
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-007.xht32
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-008.xht32
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-009.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-010.xht37
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-011.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-012.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-013.xht33
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-014.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-015.xht35
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-017.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-018.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-019.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-020.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-021.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-022.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-023.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-024.xht34
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-025.xht51
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-027.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-028.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-attribute-029.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-001.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-002.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-003.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-004-ref.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-004.xht31
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/html-precedence-005.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-001.xht29
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-002.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-003.xht39
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-004.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-border-padding-000.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001-ref.html12
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001.html17
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002-ref.html11
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002.html15
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherited-value-001.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/inherited-value-002.xht37
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/non-inherited-value-001.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/sort-by-order-001.xht46
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-001.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-002.xht27
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-003.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-004.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-005.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-006.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-007.xht30
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-008.xht28
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-009.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-011-ref.xht25
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-011.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-012.xht24
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-013-ref.xht26
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/specificity-013.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-green.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-lime.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-maroon.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-navy.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-red.pngbin0 -> 135 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/1x1-white.pngbin0 -> 109 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/60x60-gg-rr.pngbin0 -> 224 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/60x60-green.pngbin0 -> 218 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/a-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-001.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-002.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-004.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-005.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-006.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/at-import-007.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/b-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/blue15x15.pngbin0 -> 185 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/c-red.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/cascade-007.css4
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/cascade-012.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/cascade.css22
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/cat.pngbin0 -> 1883 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/diamond.pngbin0 -> 188 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/green15x15.pngbin0 -> 170 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-017-frame.htm14
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-021-frame.htm16
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-022-frame.htm16
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/html-precedence-003.css18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/import-green.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/import-red.css1
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rgr-grg.pngbin0 -> 222 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rrg-rgg.pngbin0 -> 231 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/pattern-rgr-grg-rgr.pngbin0 -> 223 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/pattern-tr.pngbin0 -> 137 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/red15x15.pngbin0 -> 922 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/ring.pngbin0 -> 715 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/square-purple.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/square-teal.pngbin0 -> 92 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/square-white.pngbin0 -> 78 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-blue.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-green.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-lime.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-orange.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-red.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-white.pngbin0 -> 85 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/swatch-yellow.pngbin0 -> 84 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/test-bl.pngbin0 -> 1368 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/test-br.pngbin0 -> 1045 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/test-outer.pngbin0 -> 2412 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/test-tl.pngbin0 -> 1025 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/test-tr.pngbin0 -> 1235 bytes
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/support/user-stylesheet.css83
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-001.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-002.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-003.xht23
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-004.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-005.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-006.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-007.xht19
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-008.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-009.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-010.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-011.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-012.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-013.xht21
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-014.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-015.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-016.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-017.xht18
-rw-r--r--testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-018.xht18
161 files changed, 2914 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/cascade/at-import-001.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-001.xht
new file mode 100644
index 0000000000..968624ce13
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-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: @import not as the first declaration</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="assert" content="An @import is ignored if it is not the first statement in a style block." />
+ <style type="text/css">
+ body
+ {
+ color: green;
+ }
+ @import url("support/at-import-001.css");
+ </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/cascade/at-import-002.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-002.xht
new file mode 100644
index 0000000000..262cf42515
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-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: Importing external stylesheets with @import</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="An @import used to import external stylesheets." />
+ <style type="text/css">
+ @import url("support/at-import-002.css");
+ </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/cascade/at-import-003.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-003.xht
new file mode 100644
index 0000000000..6cd010c088
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-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: Importing styles using @import with a string</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="An @import used with just a string is interpreted as if it had url(...) around it." />
+ <style type="text/css">
+ @import "support/at-import-002.css";
+ </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/cascade/at-import-004.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-004.xht
new file mode 100644
index 0000000000..e7ad90c77f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-004.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: Media dependency on @import set to 'print'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/no-red-filler-text-ref.xht"/>
+ <meta name="assert" content="Specifying a media-dependency of print does not apply rules to the user agent display." />
+ <style type="text/css">
+ @import url("support/at-import-004.css") print;
+ </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/cascade/at-import-005.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-005.xht
new file mode 100644
index 0000000000..7e2e08396e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-005.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: Media dependency on @import set to 'all'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Specifying the media-dependency of 'all' applies to all media types including user agent display." />
+ <style type="text/css">
+ @import url("support/at-import-005.css") all;
+ </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/cascade/at-import-006.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-006.xht
new file mode 100644
index 0000000000..9da0e2d98e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-006.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: Media dependency on @import set to 'screen'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Specifying the media-dependent import rules to 'screen' applies to user agent display." />
+ <style type="text/css">
+ @import url("support/at-import-006.css") screen;
+ </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/cascade/at-import-007.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-007.xht
new file mode 100644
index 0000000000..0704cec905
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-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: @import with @charset</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="An @import is valid after @charset." />
+ <style type="text/css">
+ @charset "ISO-8859-1";
+ @import url("support/at-import-007.css");
+ </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/cascade/at-import-008.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-008.xht
new file mode 100644
index 0000000000..fdc8a8f8b5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-008.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: @import - media-dependence</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/cascade.html#at-import" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#at-import" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#at-import" />
+ <meta content="paged" name="flags" />
+ <meta content="Media-dependent @import rules" name="assert" />
+
+ <style type="text/css"><![CDATA[
+ @import url("support/a-green.css") print;
+ ]]></style>
+
+ </head>
+
+ <body class="a">
+
+ <p>PREREQUISITE: Switch to print preview or a paged media view of
+ the page.</p>
+
+ <p>Test passes if the whole text of this page is green.</p>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/at-import-009.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-009.xht
new file mode 100644
index 0000000000..a3198aaa2c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-009.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: @import following a known but invalid @rule</title>
+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#at-rules" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="@import is respected after known but ignored @rule." />
+ <style type="text/css">
+ @media;
+ @page;
+ @charset;
+ @import "support/import-green.css";
+ </style>
+ </head>
+ <body>
+ <p class="import">This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/at-import-010.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-010.xht
new file mode 100644
index 0000000000..6ec33fe700
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-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">
+ <head>
+ <title>CSS Test: @import following an invalid selector</title>
+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#at-rules" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="@import is respected after invalid (ignored) rule set" />
+ <style type="text/css">
+ # { background: red; }
+ :unknownpseudo { background: red; }
+ @import "support/import-green.css";
+ </style>
+ </head>
+ <body>
+ <p class="import">This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/at-import-011.xht b/testing/web-platform/tests/css/CSS2/cascade/at-import-011.xht
new file mode 100644
index 0000000000..b1370dda27
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/at-import-011.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: @import following garbage</title>
+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#at-rules" />
+ <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/>
+ <meta name="flags" content="invalid" />
+ <meta name="assert" content="@import is parsed as part of invalid ruleset
+ after garbage." />
+ <style type="text/css">
+ # :unknownpseudo
+ @import "support/import-red.css";
+ .import { color: red; }
+ p { color: green; }
+ </style>
+ </head>
+ <body>
+ <p class="import">This text should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-001.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-001.xht
new file mode 100644
index 0000000000..3d9fc19e6e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-001.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: User style sheets</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="Normal user declarations override the default user agent style sheet." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p class="cascadegreen">Filler Text</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-002.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-002.xht
new file mode 100644
index 0000000000..78e078b79b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-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: Author stylesheets override user stylesheets</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="Normal author declarations override normal user stylesheet declarations." />
+ <style type="text/css">
+ .cascadered
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadered">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-003.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-003.xht
new file mode 100644
index 0000000000..b02072d72d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-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: Author rules with !important and a user stylesheet</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="Author rules using !important override user stylesheet rules." />
+ <style type="text/css">
+ .cascadered
+ {
+ color: green!important;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadered">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-004.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-004.xht
new file mode 100644
index 0000000000..dac1fcf895
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-004.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: User stylesheet rules using !important and normal author rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="User stylesheet rules using !important override normal author rules." />
+ <style type="text/css">
+ .cascadegreenimportant
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadegreenimportant">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-005.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-005.xht
new file mode 100644
index 0000000000..e6011975c9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-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: Redefining rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The latter specified rule wins when having the same specificity and weight." />
+ <style type="text/css">
+ div
+ {
+ color: red;
+ }
+ 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/cascade/cascade-006.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-006.xht
new file mode 100644
index 0000000000..f48379da85
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-006.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: User style sheets and redefining rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The latter specified rule in a style sheet wins when having the same specificity and weight in user styles sheets." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadegreen cascadered">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-007.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-007.xht
new file mode 100644
index 0000000000..2ca08df995
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-007.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: Author rules local and external</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Author rules in embedded stylesheets override author rules in imported stylesheets." />
+ <style type="text/css">
+ @import url("support/cascade-007.css");
+ 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/cascade/cascade-008.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-008.xht
new file mode 100644
index 0000000000..8aa205f00a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-008.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: Shorthand properties with !important</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <meta name="assert" content="Shorthand properties with !important apply to all direct sub-properties." />
+ <style type="text/css">
+ div
+ {
+ border: solid green!important;
+ height: 1in;
+ }
+ div
+ {
+ border-top-color: red;
+ border-bottom-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a hollow green box below.</p>
+ <div></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-009.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-009.xht
new file mode 100644
index 0000000000..48500e75e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-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: Author rules with !important and other normal author rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Author rules with !important override normal author rules." />
+ <style type="text/css">
+ div
+ {
+ color: green!important;
+ }
+ div
+ {
+ color: red;
+ }
+ </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/cascade/cascade-009a-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-009a-ref.xht
new file mode 100644
index 0000000000..4940268f27
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-009a-ref.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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ color: green;
+ font-size: 100px;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the "X" is green.</p>
+
+ <div>X</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-009a.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-009a.xht
new file mode 100644
index 0000000000..21bf13c902
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-009a.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: !important author rule in :first-letter pseudo-element</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="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" title="6.4.2 !important rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <link rel="match" href="cascade-009a-ref.xht" />
+
+ <meta content="Author rules with !important have precedence over normal author rules." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div {font-size: 100px;}
+
+ div:first-letter {color: green !important;}
+
+ div:first-letter {color: red;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the "X" is green.</p>
+
+ <div>X</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-009b-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-009b-ref.xht
new file mode 100644
index 0000000000..6da7b5fb3c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-009b-ref.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 Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ color: green;
+ font-size: 48px;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if "Text sample" is green.</p>
+
+ <div>Text sample</div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-009b.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-009b.xht
new file mode 100644
index 0000000000..791d173c82
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-009b.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: !important author rule in :first-line pseudo-element</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="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" title="6.4.2 !important rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <link rel="match" href="cascade-009b-ref.xht" />
+
+ <meta content="Author rules with !important have precedence over normal author rules." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div {font-size: 48px;}
+
+ div:first-line {color: green !important;}
+
+ div:first-line {color: red;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if "Text sample" is green.</p>
+
+ <div>Text sample</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-010.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-010.xht
new file mode 100644
index 0000000000..05cd775076
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-010.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: User stylesheet rules with !important and !important author rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="User stylesheet rules with !important override !important author rules." />
+ <style type="text/css">
+ .cascadegreenimportant
+ {
+ color: red!important;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadegreenimportant">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-011.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-011.xht
new file mode 100644
index 0000000000..568be1f0c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-011.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: User stylesheet rules with !important and normal user rules</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#importance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#importance" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="User stylesheet rules with !important declarations override user stylesheet rules with normal declarations." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div class="cascadegreenimportant cascadered">Filler Text</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-012-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-012-ref.xht
new file mode 100644
index 0000000000..aeb5db5408
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-012-ref.xht
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.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: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <div>This text should be green.</div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-012.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-012.xht
new file mode 100644
index 0000000000..44ef7cddcd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-012.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: @import and !important</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/weight/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#at-import" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#at-import" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#at-import" />
+ <link rel="match" href="cascade-012-ref.xht" />
+
+ <style type="text/css"><![CDATA[
+ @import "support/cascade-012.css"; /* .test { color: green ! important; } */
+ .test { color: red; }
+ ]]></style>
+ </head>
+ <body>
+ <div class="test">This text should be green.</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-001.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-001.xht
new file mode 100644
index 0000000000..53e61f9a9a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-001.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: cascade mechanism has precedence over inheritance - font boldness</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="help" href="http://www.w3.org/TR/CSS21/cascade.html#specified-value" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#specified" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#specified" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inheriting" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inheriting" />
+ <meta content="When determining the specified value of a property, the cascade mechanism of (user agent, author, user) style sheets has precedence. If no value results from such mechanism, then the property may inherit from its parent. In this testcase, it is presumed that b elements are specified in the user agents style sheets to embold their text content." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div {font-weight: normal;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the sentence below is bold.</p>
+
+ <div><b>This text should be bold.</b></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-002.xht b/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-002.xht
new file mode 100644
index 0000000000..c39e315e67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/cascade-precedence-002.xht
@@ -0,0 +1,31 @@
+<!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: cascade mechanism has precedence over inheritance - font styling</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="help" href="http://www.w3.org/TR/CSS21/cascade.html#specified-value" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#specified" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#specified" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inheriting" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inheriting" />
+ <meta content="When determining the specified value of a property, the cascade mechanism of (user agent, author, user) style sheets has precedence. If no value results from such mechanism, then the property may inherit from its parent. In this testcase, it is presumed that i elements are specified in the user agents style sheets to italicize their text content." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div {font-style: normal;}
+ ]]></style>
+ </head>
+
+ <body>
+
+ <p>Test passes if the sentence below is italic.</p>
+
+ <div><i>This text should be italic.</i></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/default-stylesheet-001.xht b/testing/web-platform/tests/css/CSS2/cascade/default-stylesheet-001.xht
new file mode 100644
index 0000000000..6558ccded8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/default-stylesheet-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: Overriding the user agent default style sheet</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascade" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <meta name="flags" content="ahem" />
+ <meta name="assert" content="User agent default style sheet settings can be overridden." />
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ em
+ {
+ font: 1in Ahem;
+ font-style: normal;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the box below is not slanted to one side.</p>
+ <div><em>X</em></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-001.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-001.xht
new file mode 100644
index 0000000000..aedc8627cf
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-001.xht
@@ -0,0 +1,37 @@
+<!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 'align' vs. CSS 'caption-side' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'align' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ div
+ {
+ border: 1px solid black;
+ float: left;
+ }
+ table
+ {
+ width: 300px;
+ }
+ *
+ {
+ caption-side: bottom;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the word "Bottom" is centered inside the black box and is below the word "Top".</p>
+ <div>
+ <table>
+ <caption align="right">Bottom</caption>
+ <tr>
+ <td>Top</td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-002.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-002.xht
new file mode 100644
index 0000000000..f555d6039b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-002.xht
@@ -0,0 +1,28 @@
+<!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 'alink' vs. CSS active specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="interact" />
+ <meta name="assert" content="Attribute 'alink' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *:active
+ {
+ color: green;
+ }
+ a
+ {
+ color: black;
+ }
+ </style>
+ </head>
+ <body alink="red">
+ <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/cascade/html-attribute-003.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-003.xht
new file mode 100644
index 0000000000..5649d94b4f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-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: Attribute 'background' vs. CSS 'background' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="Attribute 'background' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *
+ {
+ background: green;
+ }
+ </style>
+ </head>
+ <body background="support/red15x15.png">
+ <p>Test passes if the background of this page is green.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-004.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-004.xht
new file mode 100644
index 0000000000..c82044f302
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-004.xht
@@ -0,0 +1,20 @@
+<!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 'bgcolor' vs. CSS 'background-color' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'bgcolor' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *
+ {
+ background-color: green;
+ }
+ </style>
+ </head>
+ <body bgcolor="red">
+ <p>Test passes if the background of this page is green.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-005.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-005.xht
new file mode 100644
index 0000000000..a6adcb5f18
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-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: Attribute 'border' vs. CSS border specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'border' has 0 specificity and is overridden by CSS." />
+ <style type="text/css">
+ *
+ {
+ border: 0 none transparent;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below has no box around it.</p>
+ <table border="20">
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-006.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-006.xht
new file mode 100644
index 0000000000..842c515596
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-006.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">
+ <head>
+ <title>CSS Test: Attribute 'cellpadding' vs. CSS 'padding' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'cellpadding' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p, table, tr
+ {
+ background: white;
+ }
+ *
+ {
+ background: blue;
+ padding: 0;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the blue boxes below are only large enough to fit the "Filler Text".</p>
+ <table cellpadding="100">
+ <tr>
+ <td>Filler Text Filler Text</td>
+ </tr>
+ <tr>
+ <td>Filler Text Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-007.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-007.xht
new file mode 100644
index 0000000000..d6410a85e7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-007.xht
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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 'cellspacing' vs. CSS border-spacing specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'cellspacing' has 0 specificity and is overridden by CSS." />
+ <style type="text/css">
+ *
+ {
+ border-spacing: 0;
+ }
+ td
+ {
+ background: blue;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is one blue box on the page.</p>
+ <table cellspacing="100" cellpadding="0">
+ <tr>
+ <td>FillerText</td>
+ </tr>
+ <tr>
+ <td>FillerText</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-008.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-008.xht
new file mode 100644
index 0000000000..76c49f49ef
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-008.xht
@@ -0,0 +1,32 @@
+<!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 'clear' vs. CSS 'clear' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'clear' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ div div
+ {
+ background: blue;
+ float: left;
+ height: 32px;
+ width: 32px;
+ }
+ *
+ {
+ clear: none;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" is to the right of the blue box.</p>
+ <div>
+ <div></div>
+ <br clear="all" />
+ Filler Text
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-009.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-009.xht
new file mode 100644
index 0000000000..1e915f1dc8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-009.xht
@@ -0,0 +1,26 @@
+<!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 'color' vs. CSS 'color' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Attribute 'color' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ p
+ {
+ color: black;
+ }
+ *
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <font color="red">Filler Text</font>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-010.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-010.xht
new file mode 100644
index 0000000000..0725bd9efa
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-010.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 Test: Attribute 'cols' vs CSS 'width' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'cols' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p, br, div
+ {
+ border: none;
+ width: auto;
+ }
+ *
+ {
+ border: 1px solid blue;
+ padding: 0;
+ width: 100px;
+ }
+ div div
+ {
+ background: orange;
+ height: 20px;
+ width: 102px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the width of the blue box is the same as the orange bar below.</p>
+ <div>
+ <textarea cols="500" rows="10"></textarea>
+ <div></div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-011.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-011.xht
new file mode 100644
index 0000000000..3f3b66ae6d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-011.xht
@@ -0,0 +1,31 @@
+<!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 'width' vs. CSS 'width' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'width' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p, table, tr
+ {
+ background: white;
+ width: auto;
+ }
+ *
+ {
+ background: blue;
+ width: 0;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the blue box below is only large enough to fit the "Filler Text".</p>
+ <table>
+ <tr>
+ <td width="5000">Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-012.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-012.xht
new file mode 100644
index 0000000000..d9756f6bee
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-012.xht
@@ -0,0 +1,25 @@
+<!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 'face' vs. CSS 'font-family' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="ahem" />
+ <meta name="assert" content="Attribute 'face' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *
+ {
+ font-family: sans-serif;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of "Filler Text" below look the same.</p>
+ <font face="ahem">
+ Filler Text Filler Text
+ </font>
+ <div>Filler Text Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-013.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-013.xht
new file mode 100644
index 0000000000..970279d226
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-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">
+ <head>
+ <title>CSS Test: Attribute 'valign' vs. CSS 'vertical-align' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'valign' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ table
+ {
+ border: 1px solid;
+ border-spacing: 0;
+ height: 200px;
+ width: 100%;
+ }
+ *
+ {
+ padding: 0;
+ vertical-align: top;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" is at the top-left corner of the box below.</p>
+ <table>
+ <tr>
+ <td valign="bottom">Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-014.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-014.xht
new file mode 100644
index 0000000000..d90974700f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-014.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 'frame' vs. CSS 'border' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'frame' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ width: auto;
+ }
+ *
+ {
+ border: none;
+ width: 100%;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" has no box around it.</p>
+ <table frame="box">
+ <tr>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-015.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-015.xht
new file mode 100644
index 0000000000..54217169d8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-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: Attribute 'rules' vs. CSS border specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'rules' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ width: auto;
+ }
+ *
+ {
+ border: 0 none transparent;
+ width: 100%;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there are no lines or boxes around the "Filler Text" below.</p>
+ <table rules="all">
+ <tr>
+ <td>Filler Text</td>
+ <td>Filler Text</td>
+ </tr>
+ <tr>
+ <td>Filler Text</td>
+ <td>Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-017.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-017.xht
new file mode 100644
index 0000000000..1b401fce5f
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-017.xht
@@ -0,0 +1,25 @@
+<!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 'height' vs. CSS 'height' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'height' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ height: auto;
+ }
+ *
+ {
+ height: 300px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <iframe height="0" src="support/html-attribute-017-frame.htm"></iframe>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-018.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-018.xht
new file mode 100644
index 0000000000..b002491518
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-018.xht
@@ -0,0 +1,29 @@
+<!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 'hspace' vs. CSS 'margin' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="Attribute 'hspace' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ margin: 10px;
+ }
+ *
+ {
+ margin: -5px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no space between the green and blue boxes below.</p>
+ <div>
+ <img hspace="200" alt="15x15 blue box" src="support/blue15x15.png" />
+ <img alt="15x15 green box" src="support/green15x15.png" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-019.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-019.xht
new file mode 100644
index 0000000000..9dc9e9194e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-019.xht
@@ -0,0 +1,31 @@
+<!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 'vspace' vs. CSS 'margin' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="image" />
+ <meta name="assert" content="Attribute 'vspace' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ div
+ {
+ font: 16px/15px serif;
+ }
+ img
+ {
+ vertical-align: bottom; /* images must sit at bottom of line box, not on the baseline */
+ }
+ div *
+ {
+ margin: 0px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no space between the green and blue boxes below.</p>
+ <div><img vspace="200" alt="15x15 blue box" src="support/blue15x15.png" /></div>
+ <div><img alt="15x15 green box" src="support/green15x15.png" /></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-020.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-020.xht
new file mode 100644
index 0000000000..2a75fd7d41
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-020.xht
@@ -0,0 +1,23 @@
+<!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 'link' vs. CSS ':link' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'link' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *:link
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body link="red">
+ <p>Test passes if the "Filler Text" below is green.</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/cascade/html-attribute-021.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-021.xht
new file mode 100644
index 0000000000..10e10b10a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-021.xht
@@ -0,0 +1,16 @@
+<!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 'marginheight' vs. CSS 'margin' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'marginheight' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <iframe marginheight="50" src="support/html-attribute-021-frame.htm"></iframe>
+ <p>Test passes if the "Filler Text" appears in the top left corner of the green box.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-022.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-022.xht
new file mode 100644
index 0000000000..0e46e3d9ba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-022.xht
@@ -0,0 +1,16 @@
+<!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 'marginwidth' vs. CSS 'margin' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'marginwidth' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <iframe marginwidth="50" src="support/html-attribute-022-frame.htm"></iframe>
+ <p>Test passes if the "Filler Text" appears in the top left corner of the green box.</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-023.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-023.xht
new file mode 100644
index 0000000000..34b9f167a4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-023.xht
@@ -0,0 +1,26 @@
+<!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: HTML 'noshade' attribute vs CSS color specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'noshade' has 0 specificity and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ background-color: white;
+ }
+ *
+ {
+ background-color: lime;
+ border-color: lime;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the line below is solid bright green.</p>
+ <hr noshade="noshade" size="6" />
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-024.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-024.xht
new file mode 100644
index 0000000000..ae402ce5cd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-024.xht
@@ -0,0 +1,34 @@
+<!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 'nowrap' vs. CSS 'white-space' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'nowrap' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ table
+ {
+ width: 100px;
+ }
+ td
+ {
+ border: solid thin black;
+ }
+ *
+ {
+ white-space: normal;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if both columns of "Filler Text" below wrap to multiple lines.</p>
+ <table>
+ <tr>
+ <td nowrap="nowrap">Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</td>
+ <td nowrap="nowrap">Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-025.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-025.xht
new file mode 100644
index 0000000000..5535a1adc2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-025.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">
+ <head>
+ <title>CSS Test: Attribute 'rows' vs CSS 'height' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'rows' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html
+ {
+ margin: 10px;
+ }
+ html, body, p, table, tr, td
+ {
+ border: none;
+ border-spacing: 0;
+ height: auto;
+ }
+ *
+ {
+ height: 150px;
+ border: 1px solid blue;
+ padding: 0;
+ margin: 0;
+ vertical-align: top;
+ }
+ div
+ {
+ background: orange;
+ border: none;
+ height: 152px;
+ width: 10px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the height of the blue box is the same as the orange bar below.</p>
+ <table>
+ <tr>
+ <td>
+ <textarea rows="500" cols="5"></textarea>
+ </td>
+ <td>
+ <div></div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-027.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-027.xht
new file mode 100644
index 0000000000..2a853ee1fd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-027.xht
@@ -0,0 +1,27 @@
+<!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 'size' vs CSS 'height' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="assert" content="Attribute 'size' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ html, body, p
+ {
+ background: white;
+ height: auto;
+ }
+ *
+ {
+ background: green;
+ height: 1px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a line below.</p>
+ <hr size="100" />
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-attribute-028.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-028.xht
new file mode 100644
index 0000000000..936a213ba3
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-028.xht
@@ -0,0 +1,26 @@
+<!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 'text' vs. CSS 'color' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Attribute 'text' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ p
+ {
+ color: black;
+ }
+ *
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body text="red">
+ <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/cascade/html-attribute-029.xht b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-029.xht
new file mode 100644
index 0000000000..74cbfcd3bb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-attribute-029.xht
@@ -0,0 +1,25 @@
+<!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 'vlink' vs. CSS ':visited' specificity</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <meta name="flags" content="history interact" />
+ <meta name="assert" content="Attribute 'vlink' has a specificity of zero and is overridden by CSS." />
+ <style type="text/css">
+ *:visited
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body vlink="red">
+ <p>PREREQUSITE: Navigate to the "Filler Text" link below.</p>
+ <p>Test passes if the "Filler Text" below is green.</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/cascade/html-precedence-001.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-001.xht
new file mode 100644
index 0000000000..de4b834c38
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-001.xht
@@ -0,0 +1,26 @@
+<!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: Element selector precedence</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#preshint" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#preshint" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The 'color' attribute has a specificity equal to 0 which be overridden by subsequent style sheet rules." />
+ <style type="text/css">
+ span
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <font color="red">
+ <span>Filler Text</span>
+ </font>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-precedence-002.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-002.xht
new file mode 100644
index 0000000000..63c4c8dab6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-002.xht
@@ -0,0 +1,25 @@
+<!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: Universal selector precedence</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="assert" content="The universal selector and the 'color' attribute have the same specificity. The universal selector is applied since CSS takes precedence." />
+ <style type="text/css">
+ *
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <font color="red">
+ <span>Filler Text</span>
+ </font>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-precedence-003.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-003.xht
new file mode 100644
index 0000000000..f10cc7e5b8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-003.xht
@@ -0,0 +1,29 @@
+<!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: User style sheet precedence</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The 'font' element's 'color' attribute trumps the user stylesheet's universal selector. They have the same specificity but the font element is a virtual author rule." />
+ <style type="text/css">
+ p
+ {
+ color: black;
+ }
+ div
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="htmlPrecedence003">PREREQUISITE: The <a href="support/html-precedence-003.css">"html-precedence-003.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green and it is underlined.</p>
+ <div>
+ <font color="green">Filler Text</font>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004-ref.xht
new file mode 100644
index 0000000000..ced3ad7aa2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004-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="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ p.green {color: green;}
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p class="green">This text should be green.</p>
+
+ <p>This text should not be bold.</p>
+
+ <p class="green">This line should be green.</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004.xht
new file mode 100644
index 0000000000..f7d3b84dfe
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-004.xht
@@ -0,0 +1,31 @@
+<!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: User Stylesheets and non-CSS Presentational Hints</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/non-css/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" />
+ <link rel="match" href="html-precedence-004-ref.xht" />
+
+ <meta name="flags" content="userstyle" />
+
+ <style type="text/css">
+ .instructions { color: red; }
+ </style>
+ </head>
+ <body id="hixie-cascade-tests">
+ <div class="instructions">
+ <p>For this test, set your user stylesheet to the following:</p>
+<pre>
+/* User Stylesheet */
+#hixie-cascade-tests .instructions { display: none; }
+#hixie-cascade-tests .red { color: red; }
+#hixie-cascade-tests .green { color: green; }
+#hixie-cascade-tests .normal { font-weight: normal; }
+</pre>
+ </div>
+ <p><font color="green" class="red">This text should be green.</font></p>
+ <p><b class="normal">This text should</b> not be bold.</p>
+ <p class="green">This line should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/html-precedence-005.xht b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-005.xht
new file mode 100644
index 0000000000..80a7870a41
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/html-precedence-005.xht
@@ -0,0 +1,29 @@
+<!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: User Stylesheets and non-CSS Presentational Hints</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/non/css/002.xml" type="application/xhtml+xml"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" />
+ <meta name="flags" content="userstyle" />
+
+ <style type="text/css">
+ .instructions { color: red; }
+ </style>
+ </head>
+ <body id="hixie-cascade-tests">
+ <div class="instructions">
+ <p>For this test, set your user stylesheet to the following:</p>
+<pre>
+/* User Stylesheet */
+#hixie-cascade-tests .instructions { display: none; }
+#hixie-cascade-tests .red { color: red; }
+#hixie-cascade-tests .green { color: green; }
+#hixie-cascade-tests .normal { font-weight: normal; }
+</pre>
+ </div>
+ <p><font color="red" class="green">This text should be green.</font></p>
+ <p><b class="normal">This text should</b> not be bold.</p>
+ <p class="green">This line should be green.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-001.xht b/testing/web-platform/tests/css/CSS2/cascade/inherit-001.xht
new file mode 100644
index 0000000000..92667eae3e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-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: Inherit keyword</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inherit" />
+ <meta name="assert" content="Children elements inherit the parents color given the 'inherit' keyword." />
+ <style type="text/css">
+ body
+ {
+ color: green;
+ }
+ div
+ {
+ color: red;
+ }
+ body div
+ {
+ color: inherit;
+ }
+ </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/cascade/inherit-002.xht b/testing/web-platform/tests/css/CSS2/cascade/inherit-002.xht
new file mode 100644
index 0000000000..333d657aea
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-002.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: Inherit on non-inherited properties</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inherit" />
+ <meta name="assert" content="Inherit can be used on properties which are not normally inherited." />
+ <style type="text/css">
+ div
+ {
+ border: solid blue;
+ }
+ div p
+ {
+ border: inherit;
+ border-color: orange;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is surrounded by a orange box and a blue box.</p>
+ <div>
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-003.xht b/testing/web-platform/tests/css/CSS2/cascade/inherit-003.xht
new file mode 100644
index 0000000000..2af90d496c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-003.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: Inherit on the root element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inherit" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inherit" />
+ <meta name="assert" content="If the 'inherit' value is set on the root element, the property is assigned its initial value." />
+ <style type="text/css">
+ html
+ {
+ font-size: 1in;
+ font-size: inherit;
+ font-style: italic;
+ font-style: inherit;
+ font-variant: small-caps;
+ font-variant: inherit;
+ font-weight: bold;
+ font-weight: inherit;
+ }
+ span
+ {
+ font-size: medium;
+ font-style: normal;
+ font-variant: normal;
+ font-weight: normal;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the two lines of "Filler Text" below are identical.</p>
+ <div>
+ Filler Text
+ <br />
+ <span>Filler Text</span>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-004.xht b/testing/web-platform/tests/css/CSS2/cascade/inherit-004.xht
new file mode 100644
index 0000000000..5747872625
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-004.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: CSS inheritance: basic test</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-04-08 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/inheritance/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#fonts-intro" />
+
+ <style type="text/css">
+ p { color: blue; }
+ .test { font-weight: inherit; font-style: inherit; color: inherit; }
+ .test span { font-weight: bold; font-style: italic; color: red; }
+ </style>
+ </head>
+ <body>
+ <p> <span class="test"> This sentence should be <span> </span> the same throughout. </span> </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-border-padding-000.xht b/testing/web-platform/tests/css/CSS2/cascade/inherit-border-padding-000.xht
new file mode 100644
index 0000000000..83a2b70252
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-border-padding-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: Explicit Inheritance</title>
+ <link title="6.2 Inheritance" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" rel="help"/>
+ <link title="8.4 Padding properties" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" rel="help"/>
+ <link title="8.5 Border properties" href="http://www.w3.org/TR/CSS21/box.html#border-properties" rel="help"/>
+ <link rel="author" href="mailto:Alan.Harder@Sun.COM" title="Alan Harder"/>
+ <style type="text/css">
+ .a { border: 0 solid lime; }
+ .b { border-width: thick; border-style: inherit; border-color: inherit; }
+ .c { padding: 8px 0; background-color: red; }
+ .d { padding: inherit; background-color: lime; }
+ </style>
+ </head>
+ <body>
+ <p class="a">
+ This sentence should have no border.
+ <span class="b"> This sentence should have a green border. </span>
+ </p>
+ <p>
+ <span class="c"><span class="d"> This sentence should be in a green bar, with no red present. </span></span>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001-ref.html b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001-ref.html
new file mode 100644
index 0000000000..32efe5b4f8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference File</title>
+<link rel="author" title="Bert Bos" href="mailto:bert@w3.org">
+
+<style>
+ p {font-size: larger}
+ p, em {border: medium solid}
+</style>
+
+<p>This line is all <span>in one font</span> size
+<em></em> and there is no red.
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001.html b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001.html
new file mode 100644
index 0000000000..08f4848f32
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-001.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS cascading: Inherit the computed value</title>
+<link rel="help" href="http://www.w3.org/TR/CSS22/cascade.html#value-def-inherit">
+<link rel="help" href="http://www.w3.org/TR/CSS22/changes.html#s.6.2.1">
+<meta name="assert" content="Each property may also have a cascaded value of 'inherit', which means that, for a given element, the property takes as specified value the computed value of the element's parent.">
+<link rel="match" href="inherit-computed-001-ref.html">
+<link rel="author" title="Bert Bos" href="mailto:bert@w3.org">
+
+<style>
+ p {font-size: larger; border: medium solid}
+ span {font-size: inherit}
+ em {color: red; border: inherit}
+</style>
+
+<p>This line is all <span>in one font</span> size
+<em></em> and there is no red.
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002-ref.html b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002-ref.html
new file mode 100644
index 0000000000..d127db1e42
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Reference File</title>
+<link rel="author" title="Bert Bos" href="mailto:bert@w3.org">
+
+<style>
+ div {border-width: 1em; border-style: solid; padding: 0.5em}
+ p {font-size: 2em; border-width: 0.5em; border-style: solid}
+</style>
+
+<div><p>All borders are the same thickness.</div>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002.html b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002.html
new file mode 100644
index 0000000000..867a8badc2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherit-computed-002.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS cascading: Inherit the computed value</title>
+<link rel="help" href="http://www.w3.org/TR/CSS22/cascade.html#value-def-inherit">
+<link rel="help" href="http://www.w3.org/TR/CSS22/changes.html#s.6.2.1">
+<meta name="assert" content="Each property may also have a cascaded value of 'inherit', which means that, for a given element, the property takes as specified value the computed value of the element's parent.">
+<link rel="match" href="inherit-computed-002-ref.html">
+<link rel="author" title="Bert Bos" href="mailto:bert@w3.org">
+
+<style>
+ div {border-width: 1em; border-style: solid; padding: 0.5em}
+ p {font-size: 2em; border-width: inherit; border-style: solid}
+</style>
+
+<div><p>All borders are the same thickness.</div>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/inherited-value-001.xht b/testing/web-platform/tests/css/CSS2/cascade/inherited-value-001.xht
new file mode 100644
index 0000000000..d56091453e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherited-value-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: Inheritance</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#inheriting" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#inheriting" />
+ <meta name="assert" content="Children elements can inherit properties from parents." />
+ <style type="text/css">
+ body
+ {
+ 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/cascade/inherited-value-002.xht b/testing/web-platform/tests/css/CSS2/cascade/inherited-value-002.xht
new file mode 100644
index 0000000000..6e489b858e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/inherited-value-002.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 Test: Inheriting computed values</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="ahem" />
+ <meta name="assert" content="The computed value of a font-size with a percentage is the percentage of its parent's font-size value. A nested element which also has a percentage applies the parents' specified value (which is inherited)." />
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ .container
+ {
+ font-family: Ahem;
+ font-size: 96px;
+ }
+ div div
+ {
+ background: blue;
+ height: 48px;
+ width: 48px;
+ }
+ div p
+ {
+ font-size: 50%;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the black box and the blue box are the same width.</p>
+ <div class="container">
+ <p>X</p>
+ <div></div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/non-inherited-value-001.xht b/testing/web-platform/tests/css/CSS2/cascade/non-inherited-value-001.xht
new file mode 100644
index 0000000000..7a516f4cdb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/non-inherited-value-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: Non-inherited values</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specified-value" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#specified" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#specified" />
+ <meta name="assert" content="If the cascade results in a value, use it." />
+ <style type="text/css">
+ *
+ {
+ color: green;
+ }
+ body
+ {
+ color: red;
+ }
+ </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/cascade/sort-by-order-001.xht b/testing/web-platform/tests/css/CSS2/cascade/sort-by-order-001.xht
new file mode 100644
index 0000000000..83c43f9975
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/sort-by-order-001.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: Casdading order - sort by order specified</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" title="6.4.1 Cascading order" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" />
+ <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+
+ <meta content="If 2 declarations have the same media, the same importance (normal or !important), the same origin (author, user or user agent) and the same specificity, then the latter specified wins." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#parent > div /* a=0 b=1 c=0 d=2 -> specificity = 0,1,0,2 */
+ {
+ background-color: red;
+ }
+
+ div > div#child /* a=0 b=1 c=0 d=2 -> specificity = 0,1,0,2 */
+ {
+ background-color: green;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div id="parent">
+ <div id="child"></div>
+ </div>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-001.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-001.xht
new file mode 100644
index 0000000000..d0044ad1b4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-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: Calculating specificity - Specificity 0010 vs. 0001</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The attribute selector has an higher specificity over the element selector - specificity 0010 takes precedence over 0001." />
+ <style type="text/css">
+ [id=id1] /* a=0 b=0 c=1 d=0 -> specificity = 0,0,1,0 */
+ {
+ color: green;
+ }
+ div /* a=0 b=0 c=0 d=1 -> specificity = 0,0,0,1 */
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="id1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-002.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-002.xht
new file mode 100644
index 0000000000..293232ec12
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-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: Calculating specificity - Inline Style</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="Specificity of the inline style trumps all other selectors." />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <style type="text/css">
+ #id1 /* a=0 b=1 c=0 d=0 -> specificity = 0,1,0,0 */
+ {
+ color: red;
+ }
+ div:first-child /* a=0 b=0 c=1 d=1 -> specificity = 0,0,1,1 */
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="id1" style="color: green">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-003.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-003.xht
new file mode 100644
index 0000000000..e17733e264
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-003.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: Calculating specificity - Specificity 0100 vs. 0011</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The ID attribute in a selector has the higher specificity than the combined pseudo-class and element selectors - specificity 0100 takes precedence over 0011." />
+ <style type="text/css">
+ #id1 /* a=0 b=1 c=0 d=0 -> specificity = 0,1,0,0 */
+ {
+ color: green;
+ }
+ div:first-child /* a=0 b=0 c=1 d=1 -> specificity = 0,0,1,1 */
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="id1">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-004.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-004.xht
new file mode 100644
index 0000000000..edb41a5a42
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-004.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: Calculating specificity - Specificity 0011 vs. 0010</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The combined pseudo-class and element selectors have a higher specificity than the attribute selector - specificity 0011 takes precedence over 0010." />
+ <style type="text/css">
+ div:first-child /* a=0 b=0 c=1 d=1 -> specificity = 0,0,1,1 */
+ {
+ color: green;
+ }
+ [id=id1] /* a=0 b=0 c=1 d=0 -> specificity = 0,0,1,0 */
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <div id="id1">Filler Text</div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-005.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-005.xht
new file mode 100644
index 0000000000..58c0251739
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-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: Calculating specificity - Specificity 0002 vs. 0001</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="An element selector with a pseudo-element selector wins over a pseudo-element selector - specificity 0002 takes precedence over 0001." />
+ <style type="text/css">
+ div:first-line /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
+ {
+ color: green;
+ }
+ :first-line /* a=0 b=0 c=0 d=1 -> specificity = 0,0,0,1 */
+ {
+ color: red;
+ }
+ #p1:first-line
+ {
+ color: black;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="p1">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/cascade/specificity-006.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-006.xht
new file mode 100644
index 0000000000..d178b8941b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-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: Calculating specificity - Pseudo-element vs. simple element</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The combination of a pseudo-element selector with an element selector takes takes precedence over simple and single element selector - specificity 0002 takes precedence over 0001." />
+ <style type="text/css">
+ div:first-line /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
+ {
+ color: green;
+ }
+ div /* a=0 b=0 c=0 d=1 -> specificity = 0,0,0,1 */
+ {
+ color: red;
+ }
+ </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/cascade/specificity-007.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-007.xht
new file mode 100644
index 0000000000..3d4bd830c5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-007.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: Calculating specificity - Specificity 0001 vs. 0000</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The element selector has a higher specificity over the universal selector - specificity 0001 takes precedence over 0000." />
+ <style type="text/css">
+ div /* a=0 b=0 c=0 d=1 -> specificity = 0,0,0,1 */
+ {
+ color: green;
+ }
+ * /* a=0 b=0 c=0 d=0 -> specificity = 0,0,0,0 */
+ {
+ color: red;
+ }
+ p
+ {
+ color: black;
+ }
+ </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/cascade/specificity-008.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-008.xht
new file mode 100644
index 0000000000..fbf5eac1cb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-008.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: Calculating specificity - specificity 0012 vs. 0002</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="../reference/filler-text-below-green.xht"/>
+ <meta name="assert" content="The combined specificity of an element selector, with a pseudo-class selector and a pseudo-element selector achieves an higher specificity than the combined specificity of an element selector with a pseudo-element selector." />
+ <style type="text/css">
+ div:first-child:first-line /* a=0 b=0 c=1 d=2 -> specificity = 0,0,1,2 */
+ {
+ color: green;
+ }
+ div:first-line /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <div>Filler Text</div>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-009.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-009.xht
new file mode 100644
index 0000000000..84cb67a30d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-009.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: Calculating specificity - specificity 0003 vs. 0002</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <meta name="assert" content="First-line selector with highest specificity wins - specificity 0003 take precedence over 0002." />
+ <style type="text/css">
+ html > body > *:first-line /* a=0 b=0 c=0 d=3 -> specificity = 0,0,0,3 */
+ {
+ color: green;
+ }
+ div:first-line /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
+ {
+ color: red;
+ }
+ </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/cascade/specificity-011-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-011-ref.xht
new file mode 100644
index 0000000000..037e6e5288
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-011-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="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ span
+ {
+ border-bottom: blue solid;
+ border-top: teal solid;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>This test has: <span>PASSED</span></p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-011.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-011.xht
new file mode 100644
index 0000000000..3c3952bd87
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-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: Generated Content via Universal Selectors</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/specificity/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="specificity-011-ref.xht" />
+
+ <style type="text/css">
+ p:after { content: "FAILED"; border: none; }
+ div :after { content: "PASSED"; border-top: solid teal; }
+ body div :after { border-bottom: solid blue; }
+ </style>
+ </head>
+ <body>
+ <div>
+ <p>This test has: </p>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-012.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-012.xht
new file mode 100644
index 0000000000..06936b385d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-012.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: Pseudo-class Specificity</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/specificity/002.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+
+ <meta name="flags" content="history interact" />
+
+ <style type="text/css">
+ a:link { color: yellow; background: red; }
+ a:hover { color: red; background: yellow; font-weight: bold; }
+ a:visited { color: green; background: white; }
+ </style>
+ </head>
+ <body>
+ <p><a href="002.html">This text should be green <strong>when you
+ hover over it</strong>.</a> (If it starts red, click the link to
+ make sure the link is marked visited.)</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-013-ref.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-013-ref.xht
new file mode 100644
index 0000000000..8f9e2bdb69
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-013-ref.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 Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ p
+ {
+ background-color: green;
+ border: lime solid medium;
+ color: white;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>The background of this sentence should be green.</p>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/specificity-013.xht b/testing/web-platform/tests/css/CSS2/cascade/specificity-013.xht
new file mode 100644
index 0000000000..a0089b0f67
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/specificity-013.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: Specificity with universal selector</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/specificity/003.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/css3-selectors/#specificity" />
+ <link rel="help" href="http://www.w3.org/TR/selectors4/#specificity" />
+ <link rel="match" href="specificity-013-ref.xht" />
+
+ <style type="text/css"><![CDATA[
+ p { color: yellow; background: red; border: maroon; } /* selects the <p> with 0,0,0,1 */
+ div * { color: white; background: green; } /* selects the <p> with 0,0,0,1 and so should override */
+ body div * { border: solid lime; } /* selects the <p> with 0,0,0,2 */
+ ]]></style>
+ </head>
+ <body>
+ <div>
+ <p>The background of this sentence should be green.</p>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-green.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-green.png
new file mode 100644
index 0000000000..b98ca0ba0a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-lime.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-lime.png
new file mode 100644
index 0000000000..cb397fb090
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-maroon.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-maroon.png
new file mode 100644
index 0000000000..3f86b07219
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-maroon.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-navy.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-navy.png
new file mode 100644
index 0000000000..9b9a03955b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-navy.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-red.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-red.png
new file mode 100644
index 0000000000..6bd73ac101
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/1x1-white.png b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-white.png
new file mode 100644
index 0000000000..dd43faec54
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/1x1-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/60x60-gg-rr.png b/testing/web-platform/tests/css/CSS2/cascade/support/60x60-gg-rr.png
new file mode 100644
index 0000000000..84f5b2a4f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/60x60-gg-rr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/60x60-green.png b/testing/web-platform/tests/css/CSS2/cascade/support/60x60-green.png
new file mode 100644
index 0000000000..b3c8cf3eb4
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/60x60-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/a-green.css b/testing/web-platform/tests/css/CSS2/cascade/support/a-green.css
new file mode 100644
index 0000000000..b0dbb071d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/a-green.css
@@ -0,0 +1 @@
+.a { color: green; }
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-001.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-001.css
new file mode 100644
index 0000000000..747d0b7193
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-001.css
@@ -0,0 +1,4 @@
+div
+{
+ color: red;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-002.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-002.css
new file mode 100644
index 0000000000..1274411ed0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-002.css
@@ -0,0 +1,4 @@
+div
+{
+ color: green;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-004.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-004.css
new file mode 100644
index 0000000000..747d0b7193
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-004.css
@@ -0,0 +1,4 @@
+div
+{
+ color: red;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-005.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-005.css
new file mode 100644
index 0000000000..1274411ed0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-005.css
@@ -0,0 +1,4 @@
+div
+{
+ color: green;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-006.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-006.css
new file mode 100644
index 0000000000..1274411ed0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-006.css
@@ -0,0 +1,4 @@
+div
+{
+ color: green;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/at-import-007.css b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-007.css
new file mode 100644
index 0000000000..1274411ed0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/at-import-007.css
@@ -0,0 +1,4 @@
+div
+{
+ color: green;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/b-green.css b/testing/web-platform/tests/css/CSS2/cascade/support/b-green.css
new file mode 100644
index 0000000000..a0473f5ca2
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/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/cascade/support/blue15x15.png b/testing/web-platform/tests/css/CSS2/cascade/support/blue15x15.png
new file mode 100644
index 0000000000..89de32fdb8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/blue15x15.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/c-red.css b/testing/web-platform/tests/css/CSS2/cascade/support/c-red.css
new file mode 100644
index 0000000000..d4ba5c64e9
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/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/cascade/support/cascade-007.css b/testing/web-platform/tests/css/CSS2/cascade/support/cascade-007.css
new file mode 100644
index 0000000000..747d0b7193
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/cascade-007.css
@@ -0,0 +1,4 @@
+div
+{
+ color: red;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/cascade-012.css b/testing/web-platform/tests/css/CSS2/cascade/support/cascade-012.css
new file mode 100644
index 0000000000..b68db0e060
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/cascade-012.css
@@ -0,0 +1 @@
+.test { color: green ! important; } \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/cascade.css b/testing/web-platform/tests/css/CSS2/cascade/support/cascade.css
new file mode 100644
index 0000000000..ab1084f632
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/cascade.css
@@ -0,0 +1,22 @@
+#user-stylesheet-indication
+{
+ /* Used by the harness to display and indication there is a user-stylesheet applied */
+ display: block!important;
+}
+#cascade
+{
+ /* Used by the test to hide the prerequsite */
+ display: none;
+}
+.cascadered
+{
+ color: red;
+}
+.cascadegreen
+{
+ color: green;
+}
+.cascadegreenimportant
+{
+ color: green!important;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/cat.png b/testing/web-platform/tests/css/CSS2/cascade/support/cat.png
new file mode 100644
index 0000000000..85dd732481
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/cat.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/diamond.png b/testing/web-platform/tests/css/CSS2/cascade/support/diamond.png
new file mode 100644
index 0000000000..51112efc7c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/diamond.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/green15x15.png b/testing/web-platform/tests/css/CSS2/cascade/support/green15x15.png
new file mode 100644
index 0000000000..51741584a0
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/green15x15.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-017-frame.htm b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-017-frame.htm
new file mode 100644
index 0000000000..7c93a6986a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-017-frame.htm
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test Suite: Frame for html-attribute-017</title>
+ <style type="text/css">
+ body
+ {
+ background-color: green;
+ }
+ </style>
+ </head>
+ <body>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-021-frame.htm b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-021-frame.htm
new file mode 100644
index 0000000000..83eeaed2b7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-021-frame.htm
@@ -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 Suite: Frame for html-attribute-021</title>
+ <style type="text/css">
+ *
+ {
+ background-color: green;
+ margin: 0;
+ }
+ </style>
+ </head>
+ <body>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-022-frame.htm b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-022-frame.htm
new file mode 100644
index 0000000000..fcbe694940
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/html-attribute-022-frame.htm
@@ -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 Suite: Frame for html-attribute-022</title>
+ <style type="text/css">
+ *
+ {
+ background-color: green;
+ margin: 0;
+ }
+ </style>
+ </head>
+ <body>
+ <div>Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/html-precedence-003.css b/testing/web-platform/tests/css/CSS2/cascade/support/html-precedence-003.css
new file mode 100644
index 0000000000..9c7bf87c62
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/html-precedence-003.css
@@ -0,0 +1,18 @@
+#user-stylesheet-indication
+{
+ /* Used by the harness to display and indication there is a user-stylesheet applied */
+ display: block!important;
+}
+#htmlPrecedence003
+{
+ /* Used by the test to hide the prerequsite */
+ display: none;
+}
+*
+{
+ color: red;
+}
+font
+{
+ text-decoration: underline;
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/import-green.css b/testing/web-platform/tests/css/CSS2/cascade/support/import-green.css
new file mode 100644
index 0000000000..537104e663
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/import-green.css
@@ -0,0 +1 @@
+.import { color: green; }
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/import-red.css b/testing/web-platform/tests/css/CSS2/cascade/support/import-red.css
new file mode 100644
index 0000000000..9945ef4711
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/import-red.css
@@ -0,0 +1 @@
+.import { color: red; }
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rgr-grg.png b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rgr-grg.png
new file mode 100644
index 0000000000..9b88fbd811
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rgr-grg.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rrg-rgg.png b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rrg-rgg.png
new file mode 100644
index 0000000000..fcf4f3fd7d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-grg-rrg-rgg.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/pattern-rgr-grg-rgr.png b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-rgr-grg-rgr.png
new file mode 100644
index 0000000000..d454e3a630
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-rgr-grg-rgr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/pattern-tr.png b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-tr.png
new file mode 100644
index 0000000000..8b4b25364e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/pattern-tr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/red15x15.png b/testing/web-platform/tests/css/CSS2/cascade/support/red15x15.png
new file mode 100644
index 0000000000..39005d7e6b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/red15x15.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/ring.png b/testing/web-platform/tests/css/CSS2/cascade/support/ring.png
new file mode 100644
index 0000000000..061bb94eba
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/ring.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/square-purple.png b/testing/web-platform/tests/css/CSS2/cascade/support/square-purple.png
new file mode 100644
index 0000000000..0f522d7872
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/square-purple.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/square-teal.png b/testing/web-platform/tests/css/CSS2/cascade/support/square-teal.png
new file mode 100644
index 0000000000..e567f51b91
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/square-teal.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/square-white.png b/testing/web-platform/tests/css/CSS2/cascade/support/square-white.png
new file mode 100644
index 0000000000..5853cbb238
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/square-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-blue.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-blue.png
new file mode 100644
index 0000000000..bf2759634d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-blue.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-green.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-green.png
new file mode 100644
index 0000000000..0aa79b0c86
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-green.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-lime.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-lime.png
new file mode 100644
index 0000000000..55fd7fdaed
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-lime.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-orange.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-orange.png
new file mode 100644
index 0000000000..d3cd498b52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-orange.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-red.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-red.png
new file mode 100644
index 0000000000..1caf25c992
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-red.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-white.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-white.png
new file mode 100644
index 0000000000..1a7d4323d7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-white.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/swatch-yellow.png b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-yellow.png
new file mode 100644
index 0000000000..1591aa0e2e
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/swatch-yellow.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/test-bl.png b/testing/web-platform/tests/css/CSS2/cascade/support/test-bl.png
new file mode 100644
index 0000000000..904e24e996
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/test-bl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/test-br.png b/testing/web-platform/tests/css/CSS2/cascade/support/test-br.png
new file mode 100644
index 0000000000..f413ff5c1a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/test-br.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/test-outer.png b/testing/web-platform/tests/css/CSS2/cascade/support/test-outer.png
new file mode 100644
index 0000000000..82eeace7fc
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/test-outer.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/test-tl.png b/testing/web-platform/tests/css/CSS2/cascade/support/test-tl.png
new file mode 100644
index 0000000000..f6ac0ef7e8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/test-tl.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/test-tr.png b/testing/web-platform/tests/css/CSS2/cascade/support/test-tr.png
new file mode 100644
index 0000000000..59843ae54b
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/test-tr.png
Binary files differ
diff --git a/testing/web-platform/tests/css/CSS2/cascade/support/user-stylesheet.css b/testing/web-platform/tests/css/CSS2/cascade/support/user-stylesheet.css
new file mode 100644
index 0000000000..2583799c46
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/support/user-stylesheet.css
@@ -0,0 +1,83 @@
+#user-stylesheet-indication
+{
+ /* Used by the harness to display and indication there is a user-stylesheet applied */
+ display: block!important;
+}
+#user-stylesheet
+{
+ /* Used by the test to hide the prerequsite */
+ display: none;
+}
+/* Style rules separated to eliminate grouping issues */
+#user-stylesheet-001
+{
+ color: green;
+}
+#user-stylesheet-002
+{
+ color: green;
+}
+#user-stylesheet-003
+{
+ color: red;
+}
+#user-stylesheet-004
+{
+ color: red;
+}
+#user-stylesheet-005 span
+{
+ color: green;
+}
+#user-stylesheet-006 > span
+{
+ color: green;
+}
+#user-stylesheet-007 + p
+{
+ color: green;
+}
+*[class=user-stylesheet-008]
+{
+ color: green;
+}
+#user-stylesheet-009
+{
+ color: green;
+}
+#user-stylesheet-010 > *:first-child
+{
+ color: green;
+}
+#user-stylesheet-011:first-line
+{
+ color: green;
+}
+#user-stylesheet-012:link
+{
+ color: green;
+}
+#user-stylesheet-013:visited
+{
+ color: green;
+}
+#user-stylesheet-014:hover
+{
+ color: green;
+}
+#user-stylesheet-015:active
+{
+ color: green;
+}
+#user-stylesheet-016:first-letter
+{
+ color: green;
+}
+#user-stylesheet-017:before
+{
+ content: "PASS PASS";
+}
+#user-stylesheet-018:after
+{
+ content: "PASS PASS";
+} \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-001.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-001.xht
new file mode 100644
index 0000000000..f2d686307c
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-001.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: User defined stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="User stylesheet can be applied to the page." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p id="user-stylesheet-001">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-002.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-002.xht
new file mode 100644
index 0000000000..15a6476533
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: User defined stylesheet can be applied and persisted</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="interact userstyle" />
+ <meta name="assert" content="The user stylesheet is still applied after close and reopen the user agent window." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>PREREQUISITE: Close the user agent, reopen user agent, and navigate to this page.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p id="user-stylesheet-002">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-003.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-003.xht
new file mode 100644
index 0000000000..056ee6d8b7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: Rules with normal declarations in an user defined stylesheet can be overriden by rules with normal declarations from author in a style block</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="A CSS rule (with normal - not !important - declarations) in an author style sheet have more weight than a CSS rule (with normal - not !important -declarations) in an user style sheet." />
+ <style type="text/css">
+ #user-stylesheet-003
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p id="user-stylesheet-003">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-004.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-004.xht
new file mode 100644
index 0000000000..163d5c4c84
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-004.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: Rules with normal declarations in an user defined stylesheet can be overriden by normal declarations from author in an inline style attribute</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="A normal - not !important - declaration in an inline style from author have more weight than a CSS rule (with normal - not !important -) declarations in an user style sheet." />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p id="user-stylesheet-004" style="color: green;">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-005.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-005.xht
new file mode 100644
index 0000000000..bfa4db39fb
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-005.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: Descendant selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The descendant selector defined in user stylesheet is applied to the appropriate element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if below, the left "Green Text" is green and the right "Black Text" is black.</p>
+ <p id="user-stylesheet-005">
+ <span>Green Text</span>
+ Black Text
+ </p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-006.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-006.xht
new file mode 100644
index 0000000000..3a2bdcee5d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: Child selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The child selector defined in user stylesheet is applied to the appropriate element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if below, the left "Green Text" is green and the right "Black Text" is black.</p>
+ <div id="user-stylesheet-006">
+ <span>Green Text</span>
+ Black Text
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-007.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-007.xht
new file mode 100644
index 0000000000..55b0a5bc52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-007.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: Adjacent sibling selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The adjacent sibling selector defined in user stylesheet is applied to the appropriate element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="user-stylesheet-007"></div>
+ <p>Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-008.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-008.xht
new file mode 100644
index 0000000000..804f771dec
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: Attribute selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The attribute selector defined in user stylesheet is applied to the appropriate element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p class="user-stylesheet-008">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-009.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-009.xht
new file mode 100644
index 0000000000..4788a923f1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-009.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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 defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The ID selector defined in user stylesheet is applied to the appropriate element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <p id="user-stylesheet-009">Filler Text</p>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-010.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-010.xht
new file mode 100644
index 0000000000..a43c8763bd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: Pseudo-class selector :first-child defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The pseudo-class selector :first-child defined in user stylesheet is applied to the first child of an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if below the upper "Filler Text" is green and the lower "Filler Text" is black.</p>
+ <div id="user-stylesheet-010">
+ <p>Filler Text</p>
+ <p>Filler Text</p>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-011.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-011.xht
new file mode 100644
index 0000000000..206203e3d5
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-011.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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-element first-line selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The pseudo-element selector :first-line defined in user stylesheet is applied to the first line of an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div id="user-stylesheet-011">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-012.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-012.xht
new file mode 100644
index 0000000000..add16869dd
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-012.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: Link defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="history userstyle" />
+ <meta name="assert" content="The pseudo-class selector :link defined in user stylesheet is applied to all links." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the "Filler Text" below is green. Do not navigate the link. Note: it might be necessary to clear all navigation history.</p>
+ <div>
+ <a id="user-stylesheet-012" href="/404error/">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-013.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-013.xht
new file mode 100644
index 0000000000..085f013a45
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-013.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: Visited selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="interact userstyle" />
+ <meta name="assert" content="The pseudo-class selector :visited defined in user stylesheet is applied when a link has already been visited." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>PREREQUSITE: Navigate to the "Filler Text" link below.</p>
+ <p>Test passes if the "Filler Text" below is green.</p>
+ <div>
+ <a id="user-stylesheet-013" href="./user-stylesheet-013.htm">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-014.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-014.xht
new file mode 100644
index 0000000000..c34a064b94
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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: Hover defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="interact userstyle" />
+ <meta name="assert" content="The pseudo-class selector :hover defined in user stylesheet is applied when the mouse is above an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if hovering over the "Filler Text" below changes the text color to green.</p>
+ <div>
+ <a id="user-stylesheet-014" href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-015.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-015.xht
new file mode 100644
index 0000000000..f461aa2a17
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-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-class :active defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="interact userstyle" />
+ <meta name="assert" content="The pseudo-class selector :active defined in user stylesheet is implemented." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if activating the "Filler Text" below changes the text color to green.</p>
+ <div>
+ <a id="user-stylesheet-015" href="#">Filler Text</a>
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-016.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-016.xht
new file mode 100644
index 0000000000..6d2549c2da
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-016.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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-element first-letter selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The pseudo-element selector :first-letter defined in user stylesheet is applied to the first letter of an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the letter "F" in the "Filler Text" below is green.</p>
+ <div id="user-stylesheet-016">Filler Text</div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-017.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-017.xht
new file mode 100644
index 0000000000..32bf169475
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-017.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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-element before selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The pseudo-element selector :before defined in user stylesheet is inserted before an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the words "PASS PASS" appear below.</p>
+ <div id="user-stylesheet-017"></div>
+ </body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-018.xht b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-018.xht
new file mode 100644
index 0000000000..e89589bd30
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/cascade/user-stylesheet-018.xht
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 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-element after selector defined in user stylesheet can be applied</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/" />
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/" />
+ <meta name="flags" content="userstyle" />
+ <meta name="assert" content="The pseudo-element selector :after defined in user stylesheet is inserted after an element." />
+ <style type="text/css"></style>
+ </head>
+ <body>
+ <p id="user-stylesheet">PREREQUISITE: The <a href="support/user-stylesheet.css">"user-stylesheet.css"</a> file is enabled as the user agent's user style sheet.</p>
+ <p>Test passes if the words "PASS PASS" appear below.</p>
+ <div id="user-stylesheet-018"></div>
+ </body>
+</html> \ No newline at end of file