<!DOCTYPE html><!-- webkit-test-runner [ LayerBasedSVGEngineEnabled=true ] -->
<html>
 <head>
 <body style="margin: 0">
  <svg xmlns="http://www.w3.org/2000/svg" width="400" height="120">
   <foreignObject width="400" height="120" overflow="visible">
    <div style="margin: 100px 0">Margin should be respected</div>
   </foreignObject>
  </svg>
 </body>
</html>
