I want SVG to be fully styled from CSS #137
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SVG is a powerful tool for building data visualization and graphics on the web, but it's hard to make it responsive using the current toolkit, where much of the positioning and scaling of the image is only controllable from markup. There are plans to make some properties controllable from CSS in SVG2, but implementation status is unclear, and this still falls short of the properties I really want to be able to manipulate and animate via CSS—namely, the
viewBox
,preserveAspectRatio
, andvector-effect
attributes.Without the ability to reposition and reframe graphics in response to media queries, our current solution for responsive graphs is to simply re-render in JavaScript on every resize event, which feels needlessly complicated.
https://webwewant.fyi/wants/25/
Beta Was this translation helpful? Give feedback.
All reactions