1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
3 <title>CSS Test: The 'border-image-slice' property with four percentage values</title>
4 <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
5 <link href="http://www.w3.org/TR/css3-background/#the-border-image-slice" rel="help">
6 <meta content="image" name="flags">
7 <meta content="This test checks that the border image is sliced into nine regions with inward offsets, '40%' from the top, '15%' from the right,'20%' from the bottom, and '5%' from the left edges of the image. Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets." name="assert">
8 <style type="text/css">
9 div
10 {
11 border: 40px double red;
12 border-image-slice: 40% 15% 20% 5%;
13 border-image-source: url("../support/9grid40-30-20-10-red.png");
14 height: 100px;
15 margin: 50px;
16 width: 200px;
17 }
18 </style>
19 </head>
20 <body>
21 <p>Test passes if there is no red visible on the page.</p>
22 <div></div>
23
24 </body></html>