servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/css3-background-origin-padding-box.htm

28 lines
No EOL
1 KiB
HTML

<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>CSS Backgrounds Test:background origin property with value content-box</title>
<link href="mailto:yanshasha133@gmail.com" rel="author" title="yanshasha">
<link href="mailto:shendayang@baidu.com" rel="reviewer" title="Dayang Shen"> <!-- 2013-08-26 -->
<link href="http://www.w3.org/TR/css3-background/#the-background-origin" rel="help">
<link href="reference/css3-background-origin-content-box-ref.htm" rel="match">
<style type="text/css">
div {
width: 100px;
height: 100px;
border: 12px dashed black;
padding: 20px;
background-image: url('support/green-60-60.png');
background-repeat: no-repeat;
background-origin: padding-box;
}
</style>
</head>
<body>
<p>
The test passes if the green square is just close to the dashed border.
</p>
<div></div>
</body></html>