style-attr-cascade-006.xht (842B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS: style attribute and 'inherit'</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/cascade/style/006.xml"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/> 9 <link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/> 10 <link rel="match" href="reference/ref-green.html" /> 11 <style type="text/css"> 12 body { color: green; } 13 div { color: red; } 14 </style> 15 </head> 16 <body> 17 <div style="color: inherit">This should be green.</div> 18 </body> 19 </html>