It is standard and has terrific browser support, clear back to IE9!
caniuse.com/#feat=currentcolor
The power is in using it for additional CSS properties beyond border color or SVG fill ππ» It can even be used in gradients.
But personally, I would prefer current-color or currentcolor just so that it would match to the CSS naming convention π
current-color
currentcolor
I hope this value becomes case insensitive in the future. Same hope for viewBox attribute in SVG. I would like to see it as view-box or viewbox.
viewBox
view-box
viewbox
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It is standard and has terrific browser support, clear back to IE9!
caniuse.com/#feat=currentcolor
The power is in using it for additional CSS properties beyond border color or SVG fill ππ» It can even be used in gradients.
But personally, I would prefer
current-color
orcurrentcolor
just so that it would match to the CSS naming convention πI hope this value becomes case insensitive in the future. Same hope for
viewBox
attribute in SVG. I would like to see it asview-box
orviewbox
.