-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcss3-modsel-161.xml
More file actions
56 lines (54 loc) · 2.09 KB
/
Copy pathcss3-modsel-161.xml
File metadata and controls
56 lines (54 loc) · 2.09 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
52
53
54
55
56
<!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>Syntax and parsing of unknown pseudo-classes and pseudo-elements</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
<style type="text/css"><![CDATA[
p { background: lime; }
p * { background: lime; }
p > * { background: lime; }
p + * { background: lime; }
p ~ * { background: lime; }
/* let's try some pseudos that are not valid CSS but are likely to
be implemented as extensions in some UAs. These should not be
recognised, as UAs implementing such extensions should use the
:-vnd-ident syntax. */
:canvas { background: red; }
:viewport { background: red; }
:window { background: red; }
:menu { background: red; }
:table { background: red; }
:select { background: red; }
::canvas { background: red; }
::viewport { background: red; }
::window { background: red; }
::menu { background: red; }
::table { background: red; }
::select { background: red; }
]]></style>
<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 -->
</head>
<body>
<p id="t1">This line should have a green background.</p>
<p>
UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
<select id="t2" size="1">
<option>This should</option>
<option>have a green</option>
<option>background.</option>
</select>
</p>
<table id="t3"><tr><td>This line should have a green background (or it might be unstyled).</td></tr></table>
<!-- only allowed to be unstyled if + and ~ are not supported -->
<script><![CDATA[
test(function() {
assert_background_color('t1', LIME);
assert_background_color('t2', LIME);
assert_background_color('t3', LIME);
}, 'Syntax and parsing of unknown pseudo-classes and pseudo-elements');
]]></script>
</body>
</html>