summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-size/background-size-cover-svg.html
blob: 01cbc17e5c6530e7029b644b5efaa64436e4e8e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!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">
  <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>