overflow - SVG | MDN
Example
html,
body,
svg {
height: 100%;
}
html
<svg viewBox="0 0 200 30" xmlns="http://www.w3.org/2000/svg" overflow="auto">
<text y="20">
This text is wider than the SVG, so there should be a scrollbar shown.
</text>
</svg>
Usage notes
| Value |
visible | hidden | scroll |
auto
|
|---|---|
| Default value | visible |
| Animatable | Yes |
For a description of the values, please see the CSS overflow property.
Specifications
| Specification |
|---|
| CSS Overflow Module Level 3 # propdef-overflow |
| Scalable Vector Graphics (SVG) 2 # OverflowAndClipProperties |
Browser compatibility
See also
- CSS
overflowproperty