| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #target1 { color: red; background-color: currentColor; } | 3 #target1 { display: initial; color: green; background: initial; } |
| 4 #target1 { color: green; } | |
| 5 | 4 |
| 6 #parent { color: green; } | 5 #parent { color: green; } |
| 7 #target2 { color: red; background-color: currentColor; } | 6 #target2 { display: inherit; color: inherit; background: inherit; } |
| 8 | 7 |
| 9 #target3 { color: green !important; } | 8 #target3 { display: initial; color: green; background: initial; } |
| 10 | 9 |
| 11 #target4 { color: red !important; } | 10 #target4 { display: initial; color: initial; background: initial; } |
| 12 #target4 { background-color: red; } | |
| 13 | 11 |
| 14 #target5 { background-color: red; } | 12 #target5 { display: initial; color: green; background: initial; } |
| 15 #target5 { color: green !important; } | |
| 16 | 13 |
| 17 #target6 { color: red !important; } | 14 #target6 { display: initial; color: initial; background: initial; } |
| 18 | 15 |
| 19 #target7 { direction: rtl; } | 16 #target7 { display: initial; direction: rtl; } |
| 20 | 17 |
| 21 #target8 { direction: rtl !important; } | 18 #target8 { display: initial; direction: rtl; } |
| 22 | 19 |
| 23 #parent9 { color: green; } | 20 #parent9 { color: green; } |
| 21 #target9 { display: initial; color: inherit; } |
| 24 </style> | 22 </style> |
| 25 <div id='target1'>green color, green background-color</div> | 23 <div id='target1'>green color, no background-color</div> |
| 26 | 24 |
| 27 <div id='parent'> | 25 <div id='parent'> |
| 28 <div id='target2'>red color, red background-color</div> | 26 <div id='target2'>green color, no background-color</div> |
| 29 </div> | 27 </div> |
| 30 | 28 |
| 31 <div id='target3'>green color</div> | 29 <div id='target3'>green color</div> |
| 32 | 30 |
| 33 <div id='target4'>red color, red background-color</div> | 31 <div id='target4'>not red color, no background-color</div> |
| 34 | 32 |
| 35 <div id='target5'>green color, red background-color</div> | 33 <div id='target5'>green color, no background-color</div> |
| 36 | 34 |
| 37 <div id='target6'>red color</div> | 35 <div id='target6'>not red color</div> |
| 38 | 36 |
| 39 <div id='target7'>direction is rtl</div> | 37 <div id='target7'>direction is rtl</div> |
| 40 | 38 |
| 41 <div id='target8'>direction is rtl</div> | 39 <div id='target8'>direction is rtl</div> |
| 42 | 40 |
| 43 <div id='parent9'> | 41 <div id='parent9'> |
| 44 <div id='target9'>green color</div> | 42 <div id='target9'>green color</div> |
| 45 </div> | 43 </div> |
| OLD | NEW |