summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/selectors-namespace-001.xml
blob: d46f13413346098dbd65b1e9ceff5fb8368e863e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS: 1 simple test of namespaces (attributes)</title>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/namespace/001.xml"/>
  <link rel="help" href="https://drafts.csswg.org/selectors-3/#attrnmsp"/>
  <link rel="help" href="https://drafts.csswg.org/selectors-4/#attrnmsp"/>
  <link rel="match" href="selectors-namespace-001-ref.xml"/>
  <style type="text/css">
    @namespace html url(http://www.w3.org/1999/xhtml);
    @namespace test url(http://www.example.org/);
    html|body { color: red; }
    [test] { color: green; }
  </style>
 </head>
 <body>
  <test test="test" xmlns="http://www.example.org/">
    This text should be green.
  </test>
 </body>
</html>