summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/of-type-selectors-ref.xhtml
blob: ae866213df0112292c3bade7c48ad2d27f9a14f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Selectors Level 4: :first-of-type</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
<style type="text/css">
div > *|* {
  display: block;
  color: black;
  border: thin solid;
  margin: 1em;
}
.yellow {
  background: yellow;
}
.green {
  background: lime;
}
</style>
</head>
<body>
<div>
<p class="green">This line should have a green background.</p>
<p class="yellow">This line should have a yellow background.</p>
<p class="yellow">This line should have a yellow background.</p>
<p class="green">This line should have a green background.</p>
<p class="green">This line should have a green background.</p>
</div>
<div>
<p class="green">This line should have a green background.</p>
<p class="yellow">This line should have a yellow background.</p>
<p class="yellow">This line should have a yellow background.</p>
<p class="green">This line should have a green background.</p>
<p class="green">This line should have a green background.</p>
</div>
</body>
</html>