core-syntax-001.xht (868B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 3 <head> 4 <title>CSS Test: Nested blocks in unexpected places</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/parsing/core-syntax/001.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors" /> 8 <link rel="match" href="core-syntax-001-ref.xht"/> 9 <meta name="flags" content="invalid" /> 10 <style type="text/css"> 11 .test { color: green; } 12 .test { test { :nested; color: yellow; background: red; }: not-nested; text-decoration: underline; } 13 </style> 14 </head> 15 <body> 16 <p class="test">This sentence should be green and underlined.</p> 17 </body> 18 </html>