1×
Become a member
to unlock all features

Create egghead account to access 1,000+ tutorials and resources from expert developers.

Create account
Autoplay

    Leverage the CSS keyword "currentColor" to ensure a SVG stroke inherits the Font Color

    cssCSS

    The CSS keyword currentColor allows you to set the color of all sorts of CSS properties like background-color, border-color, stroke, fill to the current font color. In this lesson we demonstrate this setting the stroke of an SVG to currentColor.

    currentColor is well supported by all browser vendors. Even IE9 has it as you can see here: https://caniuse.com/#feat=currentcolor