summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173b.xml
blob: 7769701a9bd1d51c660fe9261a4e0a10537ff6b8 (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
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>Namespaced attribute selectors</title>
  <style type="text/css"><![CDATA[
 tests, tests * { display: block; color: red; }
 testA[*|attribute] { color: green; }
 testB[*|attribute="pass"] { color: green; }
 testC[*|attribute~="pass"] { color: green; }
 testD[*|attribute^="pass"] { color: green; }
 testE[*|attribute*="pass"] { color: green; }
 testF[*|attribute$="pass"] { color: green; }
 testG[*|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 -->
  <link rel="match" href="reference/seven-green-divs.xht"/>
  <meta name="flags" content=" namespace" />
 </head>
 <body>
  <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
   <testA attribute="pass">This should be green.</testA>
   <testB attribute="pass">This should be green.</testB>
   <testC attribute="pass">This should be green.</testC>
   <testD attribute="pass">This should be green.</testD>
   <testE attribute="pass">This should be green.</testE>
   <testF attribute="pass">This should be green.</testF>
   <testG attribute="pass">This should be green.</testG>
  </tests>
</body>
</html>