content-inherit-002.xht (1075B)
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 Test: CSS inheritance: content with tables</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/inheritance/content/002.xml" type="application/xhtml+xml"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" /> 8 <link rel="match" href="content-inherit-002-ref.xht" /> 9 10 <style type="text/css"> 11 .control td:after { content: 'PASSED)'; } 12 .test1 td { content: 'PASSED'; } 13 .test1 td:after { content: inherit; color: green; } 14 .test2 tr { content: 'PASSED'; } 15 .test2 td { content: inherit; } 16 .test2 td:after { content: inherit; color: green; } 17 </style> 18 </head> 19 <body> 20 <table class="control"><tr><td>(Control: </td></tr></table> 21 <table class="test1"><tr><td>Test 1 has: </td></tr></table> 22 <table class="test2"><tr><td>Test 2 has: </td></tr></table> 23 </body> 24 </html>