layout/reftests/border-image/multicolor-image-5.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <html lang="en-US">
     3 <head>
     4   <title>test of border-image</title>
     5   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6   <meta http-equiv="Content-Style-Type" content="text/css">
     7   <style type="text/css">
     9   /**
    10    * This is a copy of multicolor-image-2.html with a few changes:
    11    *   (1) the whole thing is inside a -moz-transform
    12    *   (2) different border-images have different values for
    13    *       repeat/stretch/round
    14    */
    16   body {
    17     width: 100px;
    18     /* This transform has no scale, and thus tests pixel-snapping codepaths! */
    19     -moz-transform: translate(100px, 100px);
    20     -moz-transform-origin: 0 0;
    21     -khtml-transform: translate(100px, 100px);
    22     -khtml-transform-origin: 0 0;
    23     transform: translate(100px, 100px);
    24     transform-origin: 0 0;
    25   }
    27   div {
    28     background: red; /* fail if this shows through */
    29     background-image: url('3x3multicolor.png'); /* fail if this shows through */
    30     margin-bottom: 2px;
    31   }
    33   div.one {
    34     border-image: url(10x5multicolor.png) 2 2 1 3 fill stretch;
    35     -khtml-border-image: url(10x5multicolor.png) 2 2 1 3 fill stretch;
    36     border-image: url(10x5multicolor.png) 2 2 1 3 fill stretch;
    37     border-width: 4px 6px 8px 11px;
    38     border-style: solid;
    39     width: 9px;
    40     height: 1px;
    41   }
    43   div.two {
    44     border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill repeat;
    45     -khtml-border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill repeat;
    46     border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill repeat;
    47     border-width: 3px 1px 0px 4px;
    48     border-style: solid;
    49     width: 2px;
    50     height: 17px;
    51   }
    53   div.three {
    54     border-image: url(10x5multicolor.png) 40% 2 1 30% fill round;
    55     -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill round;
    56     border-image: url(10x5multicolor.png) 40% 2 1 30% fill round;
    57     border-width: 10px 2px 5px 3px;
    58     border-style: solid;
    59     width: 17px;
    60     height: 8px;
    61   }
    63   div.four {
    64     border-image: url(10x5multicolor.png) 2 2 20% 30% fill stretch round;
    65     -khtml-border-image: url(10x5multicolor.png) 2 2 20% 30% fill stretch round;
    66     border-image: url(10x5multicolor.png) 2 2 20% 30% fill stretch round;
    67     border-width: 5px 7px 1px 0;
    68     border-style: solid;
    69     width: 8px;
    70     height: 5px;
    71   }
    73   div.five {
    74     border-width: 4px 8px 10px 2px;
    75     border-style: solid;
    76     border-image: url(10x5multicolor.png) 40% 2 1 30% fill repeat stretch;
    77     -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill repeat stretch;
    78     border-image: url(10x5multicolor.png) 40% 2 1 30% fill repeat stretch;
    79     width: 0;
    80     height: 8px;
    81   }
    83   div.six {
    84     border-width: 4px 0 10px 2px;
    85     border-style: solid;
    86     border-image: url(10x5multicolor.png) 40% 2 1 30% round repeat;
    87     -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% round repeat;
    88     border-image: url(10x5multicolor.png) 40% 2 1 30% round repeat;
    89     width: 17px;
    90     height: 0;
    91   }
    93   div.seven {
    94     border-image: url(10x5multicolor.png) 40% 2 1 30% stretch repeat;
    95     -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% stretch repeat;
    96     border-image: url(10x5multicolor.png) 40% 2 1 30% stretch repeat;
    97     border-width: 1px 3px 0 0;
    98     border-style: solid;
    99     width: 17px;
   100     height: 0;
   101   }
   103   </style>
   104 </head>
   105 <body>
   106 <div class="one"></div>
   107 <div class="two"></div>
   108 <div class="three"></div>
   109 <div class="four"></div>
   110 <div class="five"></div>
   111 <div class="six"></div>
   112 <div class="seven"></div>
   113 </body>
   114 </html>

mercurial