|
|
|
|
|
by rhdunn
695 days ago
|
|
Stylable here means applying styling from the HTML files CSS file to change the colour, etc. For example: 1. changing the foreground and background of the SVG based on the web page theme or light/dark mode; 2. using the SVG in a link or button and styling the image according to the hover, pressed, etc. state, e.g. when providing custom checkbox/radio/toggle buttons. |
|
For your first example:
If you’re talking about using the prefers-color-scheme media query, you can do this with any technique—<img> qualifies as well. That’s applying static styles.
If you’re talking about things like styling based on an <html class="…"> value, <iframe> doesn’t qualify: that’s inheriting styles from the parent document and you can’t do it.
For your second example: that’s about whether the SVG is interactive.
However I look at it, “stylable” is simply the wrong word.