.parent {
position: relative;
background: green;
left: 50%;
transform: translateX(-50%);
display: inline-block;
overflow: hidden;
height: 400px;
width: 270px;
}
.child {
display: block;
position: absolute;
top: 50%;
left: 50%;
min-height: 100%;
min-width: 100%;
transform: translate(-50%, -50%);
}
<div class="parent">
<div class="child">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" viewPort="550 0 600 430.95" viewBox="246 0 600 430.95" preserveAspectRatio="xMidYMid meet" >
<rect width="100%" height="100%" fill="red" />
</svg>
</div>
</div>