<!DOCTYPE html> <div style="overflow:hidden; width: 300px; height: 200px; border: solid 1px black"> <div style="width: 600px; transform: translateX(0px); will-change: transform"> <svg style="height: 200px" width="600"> <path d="M0 0 H 300 V 25 Z" fill="red"></path> </svg> </div> </div>