Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<title>CSS Reference: CSS-specified vs. attribute-specified percentages in SVG intrinsic sizing</title>
<div style="width: max-content; height: 50px">
<svg width="100%" height="100%" style="display: block">
<rect width="200" height="200" fill="green"/>
</svg>
</div>