style-attr-cascade-007.xht (1065B)
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"> 3 <head> 4 <title>CSS Test: Style Attribute Inheritance</title> 5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 6 <link rel="reviewer" title="Arron Eicholz" href="mailto:Arron.Eicholz@microsoft.com"/> 7 <link rel="match" href="reference/style-attr-cascade-007.xht"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#inheritance"/> 9 <link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/> 10 <meta http-equiv="Content-Style-Type" content="text/css" /> 11 <meta name="flags" content="image" /> 12 <meta name="assert" content="Iff a property inherits, it also inherits when declared via style attribute."/> 13 <style type="text/css"><![CDATA[ 14 ]]></style> 15 </head> 16 <body> 17 <div style="color: green; border-color: red;"> 18 <p style="border-style: solid"> 19 This sentence must be green with a green border.</p> 20 </div> 21 </body> 22 </html>