Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Backgrounds and Borders Test: The 'border-image-source' property with an SVG image as a value and the 'border-image-slice' property with four number values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="match" href="reference/border-image-image-type-001-ref.html" />
<meta name="flags" content="svg" />
<meta name="assert" content="This test checks that the SVG image used for the border image is sliced into nine regions with inward offsets of: '40 30 20 10' vector coordinates from the top, right, bottom, and left edges of the image set by the 'border-image-slice' property." />
<style type="text/css">
div
{
border: 50px double red;
border-image-slice: 40 30 20 10;
border-image-source: url("support/9-colored-areas-40-30-20-10.svg");
height: 100px;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is an hollow square with thick borders made of 8 different colors (yellow, blue, aqua, orange, teal, fuchsia, purple and black) and if there is <strong>no red</strong>.</p>
<div></div>
</body>
</html>