xml-lang-selectors-001.html (1091B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 <html> 3 <head> 4 <title>CSS Test: xml:lang attribute selector in HTML</title> 5 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org"> 6 <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"> 7 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors"> 9 <meta name="flags" content="HTMLonly"> 10 <meta name="assert" content="xml:lang in HTML cannot be selected by [lang] selectors."> 11 <style type="text/css"> 12 [lang] { background: red; color: yellow; } 13 [lang="ch"] { background: red; color: yellow; } 14 [lang|="ch"] { background: red; color: yellow; } 15 [lang~="ch"] { background: red; color: yellow; } 16 [xml:lang] { background: red; color: yellow; } 17 [xml:lang|="ch"] { background: red; color: yellow; } 18 </style> 19 </head> 20 <body> 21 <p xml:lang="ch">There must be no red.</p> 22 </body> 23 </html>