Skip to main content

currentcolorJS Keyword to set/inherit value of element's color CSS Property

can be used in place of color property to inherit value from color

<div style="color: blue; border: 1px dashed currentcolor;"\>
Border will inherit color property
<div style="background: currentcolor: height:9px"\></div\>
Above is a blue box that inherited color value
</div\>

References

  1. colorCSS Property to set currentcolor value; foreground color value of element text & text-decoration