servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/background-clip_padding-box.htm

36 lines
No EOL
1.1 KiB
HTML

<!DOCTYPE html>
<html><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.htm" 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>