diff options
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/cascade-import')
38 files changed, 669 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/.htaccess b/testing/web-platform/tests/css/CSS2/cascade-import/.htaccess new file mode 100644 index 0000000000..f922a1da60 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/.htaccess @@ -0,0 +1,4 @@ +<Files ~ "^cascade-import-002\.(xht|xhtml|xml|html|htm)$"> + Header add Link "<support/cascade-import-002d.css>; rel=\"stylesheet\"" + Header add Link "<support/cascade-import-002f.css>; rel=\"stylesheet\"" +</files> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/README b/testing/web-platform/tests/css/CSS2/cascade-import/README new file mode 100644 index 0000000000..2c0b6e478e --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/README @@ -0,0 +1,5 @@ +See also + http://www.hixie.ch/tests/evil/mixed/cascade/httplink.html + http://www.hixie.ch/tests/evil/mixed/cascade/acidlinkcascade.html + http://www.hixie.ch/tests/evil/mixed/cascade/altcascade.html + http://www.hixie.ch/tests/evil/mixed/cascade/minialtcascade.html diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-001.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-001.xht new file mode 100644 index 0000000000..6068c6ab7e --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Basic ordering test (with data:)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/001.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="help" href="http://www.ietf.org/rfc/rfc2397.txt"/> + <style type="text/css"> + @import url(data:text/css,@import%20url\(data:text/css,.test%2520%257B%2520background:%2520maroon;%2520color:%2520white;%2520%257D\);%0D%0A.test.test%20%7B%20background:%20green;%20color:%20white;%20%7D); + p { color: yellow; background: red; } + </style> + </head> + <body> + <p class="test">This line should be green.</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht new file mode 100644 index 0000000000..14e7156c83 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht @@ -0,0 +1,81 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Ordering test with various import techniques</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/002.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.6"/> + <!-- There seems to be no spec defining http-equiv="Link" behavior --> + <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="help" 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"/> + <meta name="flags" content="http" /> + + <link rel="stylesheet" href="support/cascade-import-002j.css"/> + <style type="text/css"> + @import url(support/cascade-import-002k.css); + .l { color: green; } + .m { color: red; } + .n { color: red; } + .o { color: red; } + .p { color: red; } + .q { color: red; } + .r { color: red; } + </style> + <link rel="stylesheet" href="support/cascade-import-002p.css"/> + </head> + <body> + <div class="a"> This line should be green. (a) </div> + <div class="b"> This line should be green. (b) </div> + <div class="c"> This line should be green. (c) </div> + <div class="d"> This line should be green. (d) </div> + <div class="e"> This line should be green. (e) </div> + <div class="f"> This line should be green. (f) </div> + <div class="i"> This line should be green. (i) </div> + <div class="j"> This line should be green. (j) </div> + <div class="k"> This line should be green. (k) </div> + <div class="l"> This line should be green. (l) </div> + <div class="m"> This line should be green. (m) </div> + <div class="n"> This line should be green. (n) </div> + <div class="o"> This line should be green. (o) </div> + <div class="p"> This line should be green. (p) </div> + <!-- + The cascade is as follows: + HTTP Link: header + @import + a Rule + @import + @import + b Rule + c Rule + d Rule + HTTP Link: header + @import + e Rule + f Rule + <link rel="stylesheet"> + @import + i Rule + j Rule + <style type="text/css"> + @import + k Rule + l Rule + <link rel="stylesheet"> + @import + @import + @import + m Rule + @import + n Rule + o Rule + p Rule + --> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht.headers b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht.headers new file mode 100644 index 0000000000..cf66d0e7f1 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-002.xht.headers @@ -0,0 +1 @@ +Link: <support/cascade-import-002d.css>; rel="stylesheet", <support/cascade-import-002f.css>; rel="stylesheet" diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-003.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-003.xht new file mode 100644 index 0000000000..2cdc96128a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with persistent sheets</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/003.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.a+%7B+color%3A+green%3B+%7D%0D%0A.b+%7B+color%3A+red%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+%7D"/> + </head> + <body> + <p class="a">This line should be green. (a)</p> + <p class="b">This line should be green. (b)</p> + <p class="c">This line should be green. (c)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-004.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-004.xht new file mode 100644 index 0000000000..5b0cb6574a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with persistent sheets (reversed)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/004.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.a+%7B+color%3A+green%3B+%7D%0D%0A.b+%7B+color%3A+red%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+%7D"/> + </head> + <body> + <p class="a">This line should be green. (a)</p> + <p class="b">This line should be green. (b)</p> + <p class="c">This line should be green. (c)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-005.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-005.xht new file mode 100644 index 0000000000..0b1b009e20 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with two alternate sets</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/005.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="1" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+display%3A+block%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+display%3A+block%3B+%7D%0D%0A.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D%0D%0Ap+%7B+display%3A+none%3B+%7D"/> + <link rel="alternate stylesheet" title="2" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+display%3A+block%3B+%7D"/> + </head> + <body> + <p class="a">Select each of the two alternate stylesheets to run this test.</p> + <p class="b">This line should be green. (alternate stylesheet 1 selected)</p> + <p class="c">This line should be green. (alternate stylesheet 2 selected)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-006.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-006.xht new file mode 100644 index 0000000000..c8b6e6b03b --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with two alternate sets (reversed)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/006.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="1" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+display%3A+block%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+display%3A+block%3B+%7D%0D%0A.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D%0D%0Ap+%7B+display%3A+none%3B+%7D"/> + <link rel="alternate stylesheet" title="2" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+display%3A+block%3B+%7D"/> + </head> + <body> + <p class="a">Select each of the two alternate stylesheets to run this test.</p> + <p class="b">This line should be green. (alternate stylesheet 1 selected)</p> + <p class="c">This line should be green. (alternate stylesheet 2 selected)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-007.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-007.xht new file mode 100644 index 0000000000..856a1dd4e3 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-007.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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with two alternate sets (link and meta)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/007.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="1" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+display%3A+block%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+display%3A+block%3B+%7D%0D%0A.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D%0D%0Ap+%7B+display%3A+none%3B+%7D"/> + <meta http-equiv="Link" + content='<http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+display%3A+block%3B+%7D>; rel="alternate stylesheet"; title="2"' /> + </head> + <body> + <p class="a">Select each of the two alternate stylesheets to run this test.</p> + <p class="b">This line should be green. (alternate stylesheet 1 selected)</p> + <p class="c">This line should be green. (alternate stylesheet 2 selected)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-008.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-008.xht new file mode 100644 index 0000000000..4e8d56ee80 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-008.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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with two alternate sets (link and meta; reversed)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/008.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="1" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+display%3A+block%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+display%3A+block%3B+%7D%0D%0A.b+%7B+color%3A+green%3B+%7D%0D%0A.c+%7B+color%3A+red%3B+%7D%0D%0Ap+%7B+display%3A+none%3B+%7D"/> + <meta http-equiv="Link" + content='<http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.c+%7B+color%3A+green%3B+display%3A+block%3B+%7D>; rel="alternate stylesheet"; title="2"'/> + </head> + <body> + <p class="a">Select each of the two alternate stylesheets to run this test.</p> + <p class="b">This line should be green. (alternate stylesheet 1 selected)</p> + <p class="c">This line should be green. (alternate stylesheet 2 selected)</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-009.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-009.xht new file mode 100644 index 0000000000..e7768e7fc4 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with one alternate set</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/009.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+%7D"/> + <link rel="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D"/> + </head> + <body> + <p class="a">Select the alternate stylesheet to run this test.</p> + <p class="b">This line should be green.</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-010.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-010.xht new file mode 100644 index 0000000000..d0763a3360 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-010.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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with one alternate set (reversed)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/010.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+%7D"/> + <link rel="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D"/> + </head> + <body> + <p class="a">Select the alternate stylesheet to run this test.</p> + <p class="b">This line should be green.</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-011.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-011.xht new file mode 100644 index 0000000000..6980f814b6 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-011.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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with one alternate set (link and meta)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/011.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+%7D"/> + <meta http-equiv="Link" + content='<http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D>; rel="alternate stylesheet"; title="Test"'/> + </head> + <body> + <p class="a">Select the alternate stylesheet to run this test.</p> + <p class="b">This line should be green.</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-012.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-012.xht new file mode 100644 index 0000000000..1a56032e21 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-012.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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Cascade: Controlled delays with one alternate set (link and meta; reversed)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/import/012.html"/> + <link rel="help" href="http://www.w3.org/TR/html4/present/styles.html#h-14.3"/> + <link rel="help" 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="alternate stylesheet" title="Test" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&mime=text%2Fcss&text=.b+%7B+color%3A+red%3B+%7D"/> + <link rel="stylesheet" + href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&mime=text%2Fcss&text=.a+%7B+color%3A+blue%3B+%7D"/> + <meta http-equiv="Link" + content='<http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&mime=text%2Fcss&text=.b+%7B+color%3A+green%3B+%7D>; rel="alternate stylesheet"; title="Test"' /> + </head> + <body> + <p class="a">Select the alternate stylesheet to run this test.</p> + <p class="b">This line should be green.</p> + + +</body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-001.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-001.xht new file mode 100644 index 0000000000..e7e73a46a0 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-001.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>Dynamic sheet append (<style>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <script type="text/javascript"> + var style = document.createElement("style"); + var text = document.createTextNode("body { color: red; }"); + style.appendChild(text); + document.getElementsByTagName("head")[0].appendChild(style); + // note: when this runs, we've only parsed as far as the next line, + // so the style element below doesn't exist, so we "append" + // before that element. + </script> + <style type="text/css"> + body { color: green; } + </style> + </head> + <body> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-002.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-002.xht new file mode 100644 index 0000000000..0ace1ca13c --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-002.xht @@ -0,0 +1,24 @@ +<!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>Dynamic sheet append (<link>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <script type="text/javascript"> + var style = document.createElementNS("http://www.w3.org/1999/xhtml", "link"); + style.setAttribute("type", "text/css"); + style.setAttribute("rel", "stylesheet"); + style.setAttribute("href", "support/import-red.css"); + document.getElementsByTagName("head")[0].appendChild(style); + // note: when this runs, we've only parsed as far as the next line, + // so the style element below doesn't exist, so we "append" + // before that element. + </script> + <link rel="stylesheet" type="text/css" href="support/import-green.css" /> + </head> + <body> + <p class="import">This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-003.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-003.xht new file mode 100644 index 0000000000..fd72e336ea --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-003.xht @@ -0,0 +1,22 @@ +<!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>Dynamic sheet insertion (<style>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <script type="text/javascript" id="script"> + var style = document.createElement("style"); + var text = document.createTextNode("body { color: red }"); + style.appendChild(text); + document.getElementsByTagName("head")[0].insertBefore(style, document.getElementById("script")); + </script> + <style type="text/css"> + body { color: green } + </style> + </head> + <body> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-004.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-004.xht new file mode 100644 index 0000000000..006e4cc4d8 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-004.xht @@ -0,0 +1,21 @@ +<!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>Dynamic sheet insertion (<link>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <script type="text/javascript" id="script"> + var style = document.createElementNS("http://www.w3.org/1999/xhtml", "link"); + style.setAttribute("type", "text/css"); + style.setAttribute("rel", "stylesheet"); + style.setAttribute("href", "support/import-red.css"); + document.getElementsByTagName("head")[0].insertBefore(style, document.getElementById("script")); + </script> + <link rel="stylesheet" type="text/css" href="support/import-green.css" /> + </head> + <body> + <p class="import">This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-005.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-005.xht new file mode 100644 index 0000000000..21eb1460b8 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-005.xht @@ -0,0 +1,22 @@ +<!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>Dynamic sheet deletion (<style>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <style type="text/css" id="style"> + body { color: blue } + </style> + <script type="text/javascript"> + document.getElementsByTagName("head")[0].removeChild(document.getElementById("style")); + </script> + <style type="text/css"> + body { color: red } + </style> + </head> + <body style="color:green"> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-006.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-006.xht new file mode 100644 index 0000000000..7d146e1341 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-006.xht @@ -0,0 +1,18 @@ +<!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>Dynamic sheet deletion (<link>)</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <link rel="stylesheet" type="text/css" id="link" href="support/import-red.css" /> + <script type="text/javascript"> + document.getElementsByTagName("head")[0].removeChild(document.getElementById("link")); + </script> + <link rel="stylesheet" type="text/css" href="support/import-red.css" /> + </head> + <body style="color: green" class="import"> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-README b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-README new file mode 100644 index 0000000000..82447e4924 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-README @@ -0,0 +1,4 @@ +These tests are meaningless if the control tests do not pass. + +Note: These tests are not as trivial as they seem. At least one UA +failed all but one of them at one point. diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-control.xht b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-control.xht new file mode 100644 index 0000000000..8460793e71 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/cascade-import-dynamic-control.xht @@ -0,0 +1,23 @@ +<!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>Control test</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> + <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/> + <style type="text/css" id="test"> + p { color: red; } + </style> + </head> + <body> + <p>This text should be green.</p> + <script type="text/javascript"> + document.getElementsByTagName("head")[0].removeChild(document.getElementById("test")); + var style = document.createElement("style"); + var text = document.createTextNode("body { color: green; }"); + style.appendChild(text); + document.getElementsByTagName("head")[0].appendChild(style); + </script> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002a.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002a.css new file mode 100644 index 0000000000..c8e08bc5da --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002a.css @@ -0,0 +1,18 @@ +.a { color: green; } +.b { color: red; } +.c { color: red; } +.d { color: red; } +.e { color: red; } +.f { color: red; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002b.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002b.css new file mode 100644 index 0000000000..338cd8b432 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002b.css @@ -0,0 +1,17 @@ +.b { color: green; } +.c { color: red; } +.d { color: red; } +.e { color: red; } +.f { color: red; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002c.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002c.css new file mode 100644 index 0000000000..abe6869c0c --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002c.css @@ -0,0 +1,17 @@ +@import "cascade-import-002b.css"; +.c { color: green; } +.d { color: red; } +.e { color: red; } +.f { color: red; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002d.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002d.css new file mode 100644 index 0000000000..12edd5bcac --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002d.css @@ -0,0 +1,17 @@ +@import 'cascade-import-002a.css'; +@import url(cascade-import-002c.css); +.d { color: green; } +.e { color: red; } +.f { color: red; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002e.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002e.css new file mode 100644 index 0000000000..3e2a1efed3 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002e.css @@ -0,0 +1,14 @@ +.e { color: green; } +.f { color: red; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002f.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002f.css new file mode 100644 index 0000000000..5ebde2f04a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002f.css @@ -0,0 +1,14 @@ +@import url("cascade-import-002e.css"); +.f { color: green; } +.g { color: red; } +.h { color: red; } +.i { color: red; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002i.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002i.css new file mode 100644 index 0000000000..02d53dc300 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002i.css @@ -0,0 +1,10 @@ +.i { color: green; } +.j { color: red; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002j.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002j.css new file mode 100644 index 0000000000..33e5124db2 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002j.css @@ -0,0 +1,10 @@ +@import url(cascade-import-002i.css); +.j { color: green; } +.k { color: red; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002k.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002k.css new file mode 100644 index 0000000000..5b8b0e12d9 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002k.css @@ -0,0 +1,8 @@ +.k { color: green; } +.l { color: red; } +.m { color: red; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002m.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002m.css new file mode 100644 index 0000000000..10de7fa7eb --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002m.css @@ -0,0 +1,6 @@ +.m { color: green; } +.n { color: red; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002n.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002n.css new file mode 100644 index 0000000000..bd62c257ec --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002n.css @@ -0,0 +1,5 @@ +.n { color: green; } +.o { color: red; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002o.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002o.css new file mode 100644 index 0000000000..a17eaaf34a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002o.css @@ -0,0 +1,6 @@ +@import url(cascade-import-002m.css); +@import url(cascade-import-002n.css); +.o { color: green; } +.p { color: red; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002p.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002p.css new file mode 100644 index 0000000000..d4c8b351ed --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/cascade-import-002p.css @@ -0,0 +1,4 @@ +@import url(cascade-import-002o.css); +.p { color: green; } +.q { color: red; } +.r { color: red; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/import-green.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/import-green.css new file mode 100644 index 0000000000..537104e663 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/import-green.css @@ -0,0 +1 @@ +.import { color: green; } diff --git a/testing/web-platform/tests/css/CSS2/cascade-import/support/import-red.css b/testing/web-platform/tests/css/CSS2/cascade-import/support/import-red.css new file mode 100644 index 0000000000..9945ef4711 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/cascade-import/support/import-red.css @@ -0,0 +1 @@ +.import { color: red; } |