layout/reftests/css-shapes/shape-outside-empty-polygon-7.html
author Brad Werth <bwerth@mozilla.com>
Wed, 23 May 2018 12:46:54 -0700
changeset 420751 fbfe1d5b94e18aa6cd09e684c46ea9895c6c43c3
permissions -rw-r--r--
Bug 1461046 Part 5: Add reftests that verify empty shapes still contribute their edges to float areas. r=dholbert MozReview-Commit-ID: 9YiQoNZSG5i

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Shape-outside polygon with 2 vertices, positioned between elements, acts like nothing</title>
<style>
  body {
    line-height: 0;
  }
  .container {
    width: 600px;
  }
  box {
    display: inline-block;
    background-color: blue;
    width: 100px;
    height: 20px;
  }
  .shape {
    float: left;
    width: 200px;
    height: 180px;
    shape-outside: polygon(0px 20px, 100px 20px);
  }
</style>
</head>
<body>
<div class="container">
<div class="shape"></div>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
<box></box><br>
</div>
</body>
</html>