layout/reftests/text-svgglyphs/svg-glyph-objectopacity.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 fill-opacity is correctly inherited from the outer text
     4       object when -moz-objectFillOpacity 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: 0.5;
    18       fill: url(#grad);
    19       stroke-opacity: 1.0;
    20       stroke: url(#grad2);
    21     }
    22   ]]></style>
    24   <defs>
    25     <linearGradient id="grad" x1="0" y1="0" x2="800" y2="800" gradientUnits="userSpaceOnUse">
    26       <stop stop-color="purple" offset="0%" />
    27       <stop stop-color="lime" offset="100%" />
    28     </linearGradient>
    29     <radialGradient id="grad2" cx="250" cy="400" r="400" gradientUnits="userSpaceOnUse">
    30       <stop stop-color="red" offset="0%" />
    31       <stop stop-color="blue" offset="100%" />
    32     </radialGradient>
    34   </defs>
    36   <text x="0" y="200">R</text>
    37   <text x="300" y="200">S</text>
    38   <text x="0" y="500">T</text>
    39   <text x="300" y="500">U</text>
    40 </svg>

mercurial