3 ms·
Very interesting, so dynamic styling are things that are set with a script or with user initiated actions, like :hover. Can you give an example of statically s
by asimpletune 2y ago
Very interesting, so dynamic styling are things that are set with a script or with user initiated actions, like :hover.
Can you give an example of statically styling an element of an SVG image, that’s linked in an html document via the img tag?
- chrismorgan 2y agoI’m not sure if I understand your request. What you can do is just the totally basic style element or attribute: <svg …> <style>path { fill: red }</style> <path d="…" style="stroke: green" /> </svg> But I’m not saying you can apply styles to the inside of an image from outside; that, as I have remarked, is a different matter, about heritability—you can’t do that with any technique but inline SVG. Not <img>, not <iframe>, because it’s not cross-document.
- asimpletune 2y agoSo, I think that's what everybody else has been saying as well.