summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/css3-background-size.html
blob: 79d6c5417f5aa7c4a013aa5f909106d0a47b80de (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>CSS Background-size Test: the size of the background image</title>
  <link rel="author" title="Xie Bing" href="mailto:451887565@qq.com">
  <link rel="reviewer" title="Dayang Shen" href="mailto:shendayang@baidu.com"> <!-- 2013-09-03 -->
  <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-width">
  <link rel="match" href="reference/css3-background-size-ref.html"/>
  <style type="text/css">
    div{
      width:60px;
      height:60px;
      background:url(support/60x60-green.png);
      background-size:50%;
      background-repeat: no-repeat;
    }
  </style>
</head>
<body>
  <p>The test passes if the green box is resized to 50%.</p>
  <div></div>
</body>
</html>