servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1/background-clip_padding-box.xht

36 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Backgrounds and Borders Test: background-clip_border-box</title>
<link href="dajiangxiaoyan@126.com" rel="author" title="Xiaoyan Jiang" />
<link href="jinlongz@oupeng.com" rel="reviewer" title="Jinlong Zhang" />
<link href="http://www.w3.org/TR/css3-background/#the-background-clip" rel="help" />
<link href="reference/background_clip_padding-box.xht" rel="match" />
<meta content="Test passes if border is blue and dotted without red background" name="assert" />
<style type="text/css">
/* Positioned container allows for the self-describing statement to still
be visible in the case of failure */
.container {
position: absolute;
}
.test {
background-color: red;
height: 130px;
left: 5px;
top: 5px;
width: 130px;
border: blue dotted 5px ;
position: absolute;
background-clip: padding-box;
}
</style>
</head>
<body>
<p>Test passes if border is blue and dotted without red background </p>
<div class="container">
<div class="test"></div>
</div>
</body></html>