Files
servo/tests/wpt/css-tests/css21_dev/xhtml1print/cascade-import-002.xht

100 lines
3.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cascade: Ordering test with various import techniques</title>
<style type="text/css">
@page { font: italic 8pt sans-serif; color: gray;
margin: 7%;
counter-increment: page;
@top-left { content: "CSS 2.1 Conformance Test Suite"; }
@top-right { content: "Test cascade-import-002"; }
@bottom-right { content: counter(page); }
}
</style>
<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="&lt;support/cascade-import-002h.css&gt;; rel=&quot;stylesheet&quot;" />
<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="&lt;support/cascade-import-002r.css&gt;; rel=&quot;stylesheet&quot;" />
</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>