<!DOCTYPE html>
<div style="overflow: hidden; position: relative">
<svg style="overflow: visible">
<rect width="100" height="100" fill="green"/>
<g transform="translate(0, -9000000000)">
<path d="M 3.5 0.5 L 28.5 0.5" stroke="red"/>
</g>
</svg>
</div>