style-attr-braces-002-quirks.htm (730B)
1 <html> 2 <head> 3 <title>CSS Test: Blocks in style attributes in quirks mode</title> 4 <link rel="author" title="Simon Pieters" href="mailto:simonp@opera.com"> 5 <link rel="match" href="reference/ref-green-on-green.xht"/> 6 <link rel="help" href="http://www.w3.org/TR/css-style-attr/#syntax"/> 7 <meta name="flags" content="invalid" /> 8 <meta name="assert" content="Style attribute values are the content of a 9 declaration block: the braces must not be included and are therefore invalid."/> 10 <style type="text/css"> 11 p { background: lime; color: green; margin-top: 1em; } 12 </style> 13 </head> 14 <body> 15 <p style="{color: red; background: red; }"> 16 This sentence must be green on a green background.</p> 17 </body> 18 </html>