OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 #target1 { display: initial; color: green; background: initial; } |
| 6 |
| 7 #parent { color: green; } |
| 8 #target2 { display: inherit; color: inherit; background: inherit; } |
| 9 |
| 10 #target3 { display: initial; color: green; background: initial; } |
| 11 |
| 12 #target4 { display: initial; color: initial; background: initial; } |
| 13 |
| 14 #target5 { display: initial; color: green; background: initial; } |
| 15 </style> |
| 16 </head> |
| 17 <body> |
| 18 <div id='target1'>green color, no background-color</div> |
| 19 |
| 20 <div id='parent'> |
| 21 <div id='target2'>green color, no background-color</div> |
| 22 </div> |
| 23 |
| 24 <div id='target3'>green color</div> |
| 25 |
| 26 <div id='target4'>not red color</div> |
| 27 |
| 28 <div id='target5'>green color, no background-color</div> |
| 29 </body> |
| 30 </html> |
| 31 |
OLD | NEW |