SVG rect: Readable Markup, Silent Clamping, and Accessibility Gaps
Use SVG rect for axis-aligned shapes, but know how rx and ry clamp and why bare rectangles need accessible names.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use SVG rect for axis-aligned shapes, but know how rx and ry clamp and why bare rectangles need accessible names.
Learn how to use the SVG <rect> element to create rectangles and rounded corners, including critical details on radius clamping, stroke clipping, and viewport resolution.