OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 html { |
| 4 color: grey; |
| 5 } |
| 6 .currentColor { |
| 7 background-image: linear-gradient(currentColor, currentColor); |
| 8 height: 20px; |
| 9 } |
| 10 </style> |
| 11 <div style="color: green"> |
| 12 <div class="currentColor">The color of the background should be <code>green</c
ode></div> |
| 13 </div> |
| 14 <div style="color: blue"> |
| 15 <div class="currentColor">The color of the background should be <code>blue</co
de></div> |
| 16 </div> |
| 17 |
| 18 <div style="color: green;"> |
| 19 <div style="color: yellow;"> |
| 20 <div class="currentColor">The color of the background should be <code>yellow
</code></div> |
| 21 </div> |
| 22 <div class="currentColor">The color of the background should be <code>green</c
ode></div> |
| 23 </div> |
| 24 |
| 25 <div class="currentColor" style="color: cyan;">The color of the background shoul
d be <code>cyan</code></div> |
| 26 <div class="currentColor">The color of the background should be <code>grey</code
></div> |
OLD | NEW |