<!DOCTYPE html>
<html>
<!--
This is a regression test for https://bugs.webkit.org/show_bug.cgi?id=124324
-->
<head>
<style>
#margin-empty-polygon-0vertex { -webkit-shape-outside: polygon(); -webkit-shape-margin: 5px; }
#margin-empty-polygon-1vertex { -webkit-shape-outside: polygon(1px 2px); -webkit-shape-margin: 5px; }
#margin-empty-polygon-2vertex { -webkit-shape-outside: polygon(1px 2px, 3px 4px); -webkit-shape-margin: 5px; }
</style>
<body>
  <div>This test should not crash.</div>
  <div id="margin-empty-polygon-0vertex">Zero</div>
  <div id="margin-empty-polygon-1vertex">One</div>
  <div id="margin-empty-polygon-2vertex">Two</div>
  <script>
    if (window.testRunner)
        testRunner.dumpAsText();
  </script>
</body>
</html>
