mirror of
https://github.com/servo/servo.git
synced 2025-09-14 17:08:22 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -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>
|
|
@ -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
|
|
@ -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 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.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>
|
|
@ -0,0 +1,91 @@
|
|||
<!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/CSS21/cascade.html#cascading-order"/>
|
||||
<meta name="flags" content="http" />
|
||||
|
||||
<meta http-equiv="Link" content='<support/cascade-import-002h.css>; rel="stylesheet"'/>
|
||||
<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"/>
|
||||
<meta http-equiv="Link" content='<support/cascade-import-002r.css>; rel="stylesheet"'/>
|
||||
</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="g"> This line should be green. (g) </div>
|
||||
<div class="h"> This line should be green. (h) </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>
|
||||
<div class="q"> This line should be green. (q) </div>
|
||||
<div class="r"> This line should be green. (r) </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
|
||||
<meta http-equiv="Link">
|
||||
@import
|
||||
g Rule
|
||||
h 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
|
||||
<meta http-equiv="Link">
|
||||
@import
|
||||
q Rule
|
||||
r Rule
|
||||
-->
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Link: <support/cascade-import-002d.css>; rel="stylesheet", <support/cascade-import-002f.css>; rel="stylesheet"
|
|
@ -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: 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="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>
|
|
@ -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: 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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 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="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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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.
|
|
@ -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>
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -0,0 +1,12 @@
|
|||
.g { color: green; }
|
||||
.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; }
|
|
@ -0,0 +1,12 @@
|
|||
@import url('cascade-import-002g.css');
|
||||
.h { color: green; }
|
||||
.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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -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; }
|
|
@ -0,0 +1,6 @@
|
|||
.m { color: green; }
|
||||
.n { color: red; }
|
||||
.o { color: red; }
|
||||
.p { color: red; }
|
||||
.q { color: red; }
|
||||
.r { color: red; }
|
|
@ -0,0 +1,5 @@
|
|||
.n { color: green; }
|
||||
.o { color: red; }
|
||||
.p { color: red; }
|
||||
.q { color: red; }
|
||||
.r { color: red; }
|
|
@ -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; }
|
|
@ -0,0 +1,4 @@
|
|||
@import url(cascade-import-002o.css);
|
||||
.p { color: green; }
|
||||
.q { color: red; }
|
||||
.r { color: red; }
|
|
@ -0,0 +1,2 @@
|
|||
.q { color: green; }
|
||||
.r { color: red; }
|
|
@ -0,0 +1,2 @@
|
|||
@import url(cascade-import-002q.css);
|
||||
.r { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.import { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.import { color: red; }
|
Loading…
Add table
Add a link
Reference in a new issue