Files
servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/reference/css3-border-image-source-ref.htm

49 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>CSS Border Test:border image source property</title>
<link href="mailto:yanshasha133@gmail.com" rel="author" title="yanshasha">
<link href="mailto:shendayang@baidu.com" rel="reviewer" title="Dayang Shen"> <!-- 2013-09-03 -->
<style type="text/css">
div {
background-color: yellow;
width: 220px;
height: 220px;
position: relative;
}
img {
width: 60px;
height: 60px;
position: absolute;
}
#img1 {
top: 0;
left: 0;
}
#img2 {
top: 0;
right: 0;
}
#img3 {
bottom: 0;
right: 0;
}
#img4 {
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<p>
The test passes if there are four green squares at each corner of the yellow square and no red border can be seen.
</p>
<div>
<img src="../support/green-60-60.png" alt="baidu logo at left top" id="img1">
<img src="../support/green-60-60.png" alt="baidu logo at right top" id="img2">
<img src="../support/green-60-60.png" alt="baidu logo at right bottom" id="img3">
<img src="../support/green-60-60.png" alt="baidu logo at left bottom" id="img4">
</div>
</body></html>