gecko-dev/layout/reftests/border-image/multicolor-image-2.html

97 строки
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>test of -moz-border-image</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
div {
background: red; /* fail if this shows through */
background-image: url('3x3multicolor.png'); /* fail if this shows through */
margin-bottom: 2px;
}
div.one {
-moz-border-image: url(10x5multicolor.png) 2 2 1 3;
-khtml-border-image: url(10x5multicolor.png) 2 2 1 3;
border-image: url(10x5multicolor.png) 2 2 1 3;
border-width: 4px 6px 8px 11px;
width: 9px;
height: 1px;
}
div.two {
-moz-border-image: url(10x5multicolor.png) 40% 20% 20% 30%;
-khtml-border-image: url(10x5multicolor.png) 40% 20% 20% 30%;
border-image: url(10x5multicolor.png) 40% 20% 20% 30%;
border-width: 3px 1px 0px 4px;
width: 2px;
height: 17px;
}
div.three {
-moz-border-image: url(10x5multicolor.png) 40% 2 1 30%;
-khtml-border-image: url(10x5multicolor.png) 40% 2 1 30%;
border-image: url(10x5multicolor.png) 40% 2 1 30%;
border-width: 10px 2px 5px 3px;
width: 17px;
height: 8px;
}
div.four {
-moz-border-image: url(10x5multicolor.png) 2 2 20% 30%;
-khtml-border-image: url(10x5multicolor.png) 2 2 20% 30%;
border-image: url(10x5multicolor.png) 2 2 20% 30%;
border-width: 5px 7px 1px 0;
width: 8px;
height: 5px;
}
div.five {
border-width: 5px 6px 7px 8px; /* ignored */
border-width: 5px 6px 7px 8px ! important; /* ignored */
-moz-border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 8px 10px 2px;
-khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 8px 10px 2px;
border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 8px 10px 2px;
border-width: 5px 6px 7px 8px; /* ignored */
border-width: 5px 6px 7px 8px ! important; /* ignored */
width: 0;
height: 8px;
}
div.five {
border-width: 5px 6px 7px 8px; /* ignored */
border-width: 5px 6px 7px 8px ! important; /* ignored */
}
div.six {
border-width: 5px 6px 7px 8px; /* ignored */
-moz-border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 0 10px 2px;
-khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 0 10px 2px;
border-image: url(10x5multicolor.png) 40% 2 1 30% / 4px 0 10px 2px;
width: 17px;
height: 0;
}
div.seven {
-moz-border-image: url(10x5multicolor.png) 40% 2 1 30%;
-khtml-border-image: url(10x5multicolor.png) 40% 2 1 30%;
border-image: url(10x5multicolor.png) 40% 2 1 30%;
border-width: 1px 3px 0 0;
width: 17px;
height: 0;
}
</style>
</head>
<body>
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
<div class="five"></div>
<div class="six"></div>
<div class="seven"></div>
</body>
</html>