79770920

Date: 2025-09-21 14:52:05
Score: 0.5
Natty:
Report link

IMO, the most flexible way is to use css variables with a potential default value

<symbol id="thing">
    <circle fill="var(--fill, red)"> // if --fill doesn't exit, it's gonna default to red
</symbol>
<svg style="--fill: blue">
    <use xlink:href="sprite.svg#thing">
</svg>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Heil Programmierung