layout/reftests/svg/conditions-08.svg

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 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg">
     6   <title>Test that clipPath, mask, filter, gradients and patterns ignore failing conditionals</title>
     7   <defs>
     8     <clipPath id="c1" systemLanguage="xx">
     9       <circle cx="50" cy="50" r="50"/>
    10     </clipPath>
    11     <mask id="m1" systemLanguage="xx">
    12       <circle cx="50" cy="50" r="50" fill="#888"/>
    13     </mask>
    14     <filter id="f1" systemLanguage="xx">
    15       <feColorMatrix type="hueRotate" values="60"/>
    16     </filter>
    17     <linearGradient id="l1" systemLanguage="xx">
    18       <stop stop-color="red"/>
    19       <stop offset="1" stop-color="yellow"/>
    20     </linearGradient>
    21     <pattern id="p1" viewBox="0 0 10 10" width="25%" height="25%" systemLanguage="xx">
    22       <circle cx="5" cy="5" r="5" fill="red"/>
    23     </pattern>
    24   </defs>
    25   <g fill="blue">
    26     <g transform="translate(200,50)">
    27       <rect width="100" height="100" clip-path="url(#c1)"/>
    28     </g>
    29     <g transform="translate(200,160)">
    30       <rect width="100" height="100" mask="url(#m1)"/>
    31     </g>
    32     <g transform="translate(200,270)">
    33       <rect width="100" height="100" filter="url(#f1)"/>
    34     </g>
    35     <g transform="translate(200,380)">
    36       <rect width="100" height="100" fill="url(#l1)"/>
    37     </g>
    38     <g transform="translate(200,490)">
    39       <rect width="100" height="100" fill="url(#p1)"/>
    40     </g>
    41   </g>
    42 </svg>

mercurial