wpt / css / css-borders / border-shape / border-shape-outline-double.html

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

/css/css-borders/border-shape/border-shape-outline-double.html

<!DOCTYPE html>
<title>CSS Borders Test: outline-style: double follows border-shape</title>
<link rel="help" href="https://drafts.csswg.org/css-borders-4/#border-shape">
<link rel="help" href="https://drafts.csswg.org/css-ui/#outline">
<link rel="match" href="border-shape-outline-double-ref.html">
<meta name="fuzzy" content="maxDifference=0-100;totalPixels=0-3000">
<style>
body {
  margin: 0;
}
.container {
  padding: 30px;
}
.target {
  width: 100px;
  height: 100px;
  background: lightblue;
  border-shape: circle(50px at 50px 50px);
  outline: 9px double red;
}
</style>
<div class="container">
  <div class="target"></div>
</div>

/css/css-borders/border-shape/border-shape-outline-double-ref.html

<!DOCTYPE html>
<style>
body {
  margin: 0;
}
.container {
  padding: 30px;
}
.target {
  width: 100px;
  height: 100px;
  position: relative;
}
</style>
<div class="container">
  <!-- Circle with 9px double red outline around 50px radius circle -->
  <!-- Double outline: 3px stroke at outer edge, 3px stroke at inner edge, 3px gap in between -->
  <div class="target">
    <svg width="130" height="130" style="position: absolute; left: -15px; top: -15px;">
      <!-- Background fill: circle at center with 50px radius -->
      <circle cx="65" cy="65" r="50" fill="lightblue"/>
      <!-- Outer stroke: at radius 50 + 9 - 1.5 = 57.5 with stroke-width 3 -->
      <circle cx="65" cy="65" r="57.5" fill="none" stroke="red" stroke-width="3"/>
      <!-- Inner stroke: at radius 50 + 1.5 = 51.5 with stroke-width 3 -->
      <circle cx="65" cy="65" r="51.5" fill="none" stroke="red" stroke-width="3"/>
    </svg>
  </div>
</div>