border-image-slice-007

The 'border-image-slice' property with the 'fill' keyword

WeasyPrint

This browser

Flags
image
Assertion
This test checks that the 'fill' keyword, if present, causes the middle part of the border-image to be preserved.

Source

 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 the 'fill' keyword</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 'fill' keyword, if present, causes the middle part of the border-image to be preserved." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 background-color: red;
12                 border: 40px double red;
13                 border-image-slice: 40% 15% 20% 5% fill;
14                 border-image-source: url("../support/9grid40-30-20-10-lime.png");
15                 height: 100px;
16                 margin: 50px;
17                 width: 200px;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if there is no red visible on the page.</p>
23         <div></div>
24     
25 </body></html>