wpt / css / css-backgrounds / background-size / background-size-cover-svg.html

Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-backgrounds/background-size/background-size-cover-svg.html

<!DOCTYPE html>
<html>
<head>
  <title>CSS Background Test: A SVG background should fully cover the positioning area</title>
  <link rel="author" title="schenney" href="mailto:schenney@chromium.org">
  <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#the-background-size">
  <link rel="match" href="reference/background-size-cover-svg-ref.html">
  <meta name="fuzzy" content="maxDifference=0-2;totalPixels=0-1200">
  <style>
    div {
      height: 400px;
      width: 600px;
      position: relative;
      background-color: red;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: bottom center;
      background-image: url("support/rectangle-2560x208.svg");
    }
  </style>
</head>

<body>
  <div></div>
</body>
</html>

/css/css-backgrounds/background-size/reference/background-size-cover-svg-ref.html

<!DOCTYPE html>
<html>
<head>
  <title>CSS Background Test Reference</title>
  <link rel="author" title="schenney" href="mailto:schenney@chromium.org">
  <style>
    div {
      height: 400px;
      width: 600px;
      position: relative;
      background-color: red;
      background-repeat: repeat;
      background-position: bottom center;
      background-image: url("../support/50x50-green.png");
    }
  </style>
</head>

<body>
  <div></div>
</body>
</html>