mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"><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> |