summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-image-image-type-002.htm
blob: f365793e3f4c40fea9a51be8fd247855c77f76cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <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 percentage values</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-image-slice" />
        <link rel="match" href="reference/border-image-image-type-002-ref.html" />
        <meta name="flags" content="svg" />
        <meta name="assert" content="This test checks that border image is sliced into nine regions with inward offsets of: '40% 30% 20% 10%' from the top, right, bottom, and 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." />
        <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>

  <!--

  Expected result:

  +------------------+
  |yel|   blue   |aqu|
  |- - - - - - - - - |
  |or |          | t |
  | a |          | e |
  | n |          | a |
  |ge |          | l |
  |- - - - - - - - - |
  |fuc|  purple  |bla|
  +------------------+

  -->

        <div></div>
    </body>
</html>