I need such an inline SVG:
1) it scales to container width,
2) height proportionally scales,
3) elements outside of viewbox(?) are cropped.
All three points are satisfied on Chrome. But not ok on IE.
Point 1) above, for IE to scale I have put preserveAspectRatio="xMidYMid slice"
2) If I put svg { height: 100%; }
, ok on Chrome, not ok on IE (it should be a square).
Not putting this, IE ok, but Chrome not ok.
What can I do?
3) Not cropped on IE. I want a half circle in the bottom, as in Chrome. This thing may rotate so I don't want to draw a half circle by <path>
.
svg { overflow: hidden; }
is ok only when there is no slice
in preserveAspectRatio
, that is, no scaling. But I need scaling.