<style>
  .grid1 {
    -webkit-line-grid: grid1;
  }
  .grid2 {
    -webkit-line-grid: grid2;
  }
</style>
<script>
if (window.testRunner)
    window.testRunner.dumpAsText()
</script>

<body>
  <div class=grid1>
    <div class=grid2>
    </div>
  </div>
This test passes if it doesn't crash.
</body>
