Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

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