-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcss3-modsel-78.xml
More file actions
51 lines (51 loc) · 1.75 KB
/
Copy pathcss3-modsel-78.xml
File metadata and controls
51 lines (51 loc) · 1.75 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
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>NEGATED :last-child pseudo-class</title>
<style type="text/css"><![CDATA[.red { background-color : red }
.t1 td:not(:last-child) { background-color : lime }
p > *:not(:last-child) { background-color : lime }
table.t1 td { border : thin black solid }
]]></style>
<link rel="author" title="Daniel Glazman" href="http://glazman.org/"/>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
</head>
<body>
<div>
<table class="t1" border="1">
<tr>
<td id="t1" class="red">green cell</td>
<td id="t2" class="red">green cell</td>
<td id="t1_3">1.3</td>
</tr>
<tr>
<td id="t3" class="red">green cell</td>
<td id="t4" class="red">green cell</td>
<td>2.3</td>
</tr>
<tr>
<td id="t5" class="red">green cell</td>
<td id="t6" class="red">green cell</td>
<td>3.3</td>
</tr>
</table>
</div>
<p>This <span id="s1">paragraph should</span> be unstyled.</p>
<script><![CDATA[
test(function() {
assert_background_color('t1', LIME);
assert_background_color('t2', LIME);
assert_background_color('t3', LIME);
assert_background_color('t4', LIME);
assert_background_color('t5', LIME);
assert_background_color('t6', LIME);
assert_not_background_color('t1_3', LIME);
assert_not_background_color('s1', LIME);
}, "NEGATED :last-child pseudo-class");
]]></script>
</body>
</html>