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