inherit-004.xht (941B)
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: CSS inheritance: basic test</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-08 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/inheritance/001.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#fonts-intro" /> 9 10 <style type="text/css"> 11 p { color: blue; } 12 .test { font-weight: inherit; font-style: inherit; color: inherit; } 13 .test span { font-weight: bold; font-style: italic; color: red; } 14 </style> 15 </head> 16 <body> 17 <p> <span class="test"> This sentence should be <span> </span> the same throughout. </span> </p> 18 </body> 19 </html>