wpt / css / css-shapes / shape-outside / supported-shapes / shape / shape-outside-shape-000.html

Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-shapes/shape-outside/supported-shapes/shape/shape-outside-shape-000.html

<!DOCTYPE html>
<title>CSS Test: left float, shape() with line commands</title>
<link rel="author" title="Jason Leo" href="mailto:cgqaq@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-shapes-2/#shape-function">
<link rel="help" href="https://www.w3.org/TR/css-shapes-1/#shape-outside-property">
<link rel="match" href="reference/shape-outside-shape-000-ref.html">
<meta name="assert" content="The test verifies that text wraps around a
                             left float with a shape-outside defined as
                             a shape() with line commands forming a
                             rectangle.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  body {
    margin: 0;
  }
  #test-container {
    font: 20px/1 Ahem;
    width: 200px;
    height: 200px;
    color: green;
  }
  #test-shape {
    float: left;
    width: 200px;
    height: 200px;
    shape-outside: shape(from 0px 0px, line to 100px 0px, line to 100px 200px, line to 0px 200px, close);
  }
</style>
<p>The test passes if the green text lines up on the right.</p>
<div id="test-container">
  <div id="test-shape"></div>
  XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX
</div>

/css/css-shapes/shape-outside/supported-shapes/shape/reference/shape-outside-shape-000-ref.html

<!DOCTYPE html>
<title>CSS Reference File</title>
<link rel="author" title="Jason Leo" href="mailto:cgqaq@chromium.org">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  body {
    margin: 0;
  }
  #test-container {
    font: 20px/1 Ahem;
    width: 200px;
    height: 200px;
    color: green;
  }
  #test-shape {
    float: left;
    width: 100px;
    height: 200px;
  }
</style>
<p>The test passes if the green text lines up on the right.</p>
<div id="test-container">
  <div id="test-shape"></div>
  XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX
</div>