-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcss3-modsel-174a.xml
More file actions
28 lines (28 loc) · 1.11 KB
/
Copy pathcss3-modsel-174a.xml
File metadata and controls
28 lines (28 loc) · 1.11 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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Attribute selectors with multiple attributes</title>
<style type="text/css"><![CDATA[
tests, tests * { display: block; color: red; }
testA[*|attribute="pass"] { color: green; }
testB[*|attribute="pass"] { color: green; }
]]></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 -->
<meta name="flags" content=" namespace" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
</head>
<body>
<tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
<testA id="t1" attribute="pass" test:attribute="fail">This should be green.</testA>
<testB id="t2" attribute="fail" test:attribute="pass">This should be green.</testB>
</tests>
<script><![CDATA[
test(function() {
assert_color('t1', GREEN);
assert_color('t2', GREEN);
}, 'Attribute selectors with multiple attributes');
]]></script>
</body>
</html>