Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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="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>