layout/reftests/text-svgglyphs/svg-glyph-objectopacity2.svg

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <svg xmlns="http://www.w3.org/2000/svg">
     2   <!--
     3         Test that stroke-opacity is correctly inherited from the outer text
     4       object when -moz-objectStrokeOpacity is used in an SVG glyph.
     5   -->
     7   <style type="text/css"><![CDATA[
     8     @font-face {
     9       font-family: "Liberation";
    10       src:url("resources/svg.woff") format("woff");
    11     }
    13     text {
    14       font-family: "Liberation";
    15       font-size: 200px;
    16       stroke-width: 5;
    17       fill-opacity: 1.0;
    18       fill: url(#pat);
    19       stroke-opacity: 0.5;
    20       stroke: url(#pat2);
    21     }
    22   ]]></style>
    24   <defs>
    25     <pattern id="pat" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse">
    26       <rect x="5" y="5" width="30" height="30" stroke="salmon" stroke-width="5"
    27         fill="mistyrose" />
    28     </pattern>
    29     <pattern id="pat2" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
    30       <rect x="5" y="5" width="10" height="10" stroke="lavenderblush" stroke-width="2"
    31         fill="lemonchiffon" />
    32     </pattern>
    33   </defs>
    35   <text x="0" y="200">R</text>
    36   <text x="300" y="200">S</text>
    37   <text x="0" y="500">T</text>
    38   <text x="300" y="500">U</text>
    39 </svg>

mercurial