Skip to main content
The 2024 Developer Survey results are live! See the results
8 events
when toggle format what by license comment
Mar 14 at 19:03 comment added Andrew Murphy In 2024, the best answer. Use with the CSS property names for SVG's, e.g. stroke (a color), stroke-width (a number relative to the svg viewbox size), fill (a color)
Jul 8, 2022 at 14:51 comment added Flament Mickaël Thanks, in my case I couldn't use another solution.
Nov 2, 2021 at 2:44 comment added xianshenglu If the svg is replaced, the function is lost.
Aug 25, 2020 at 20:20 comment added Chris Moschini -- is the syntax for CSS Variables, and being newer, a compatibility note is worth adding here, even if the concern will fade over time: CSS Variables are supported by everything except old IE and Opera Mini. Opera Mini is an important concern given its Developing World popularity - you should not use this technique to inform the user about something important, since the 100mil+ Opera Mini users will not be able to see it. caniuse.com/#feat=css-variables
Jun 10, 2020 at 18:07 comment added srm Welcome to StackOverflow, Neto. This looks like a good answer. Thanks for helping.
Jun 10, 2020 at 17:52 review Late answers
Jun 10, 2020 at 18:33
Jun 10, 2020 at 17:35 review First posts
Jun 10, 2020 at 18:07
Jun 10, 2020 at 17:34 history answered Neto CC BY-SA 4.0