layout/reftests/svg/svg-integration/patterned-svg-under-transformed-html-02.xhtml

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 <html xmlns="http://www.w3.org/1999/xhtml">
     6 <head>
     7   <title>Test SVG patterning under transformed HTML elements</title>
     8   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=769970 -->
     9   <style type="text/css">
    11 * { margin: 0; border: 0; padding: 0;}
    13 svg {
    14   display: block;
    15   position: absolute;
    16 }
    18 .scaled {
    19   left: 50px;
    20   top: 50px;
    21   width: 150px;
    22   height: 150px;
    23   transform: scale(2,2);
    24   transform-origin: 0 0;
    25 }
    27   </style>
    28 </head>
    29 <body bgcolor="lime">
    31   <svg xmlns="http://www.w3.org/2000/svg" width="350" height="350">
    32     <circle cx="200" cy="200" r="147" fill="red"/>
    33   </svg>
    35   <svg xmlns="http://www.w3.org/2000/svg" class="scaled">
    36     <pattern id="redDot" width="1" height="1">
    37       <circle cx="75" cy="75" r="74" fill="red"/>
    38     </pattern>
    39     <pattern id="limeDot" width="1" height="1">
    40       <circle cx="75" cy="75" r="75" fill="lime"/>
    41     </pattern>
    42     <rect width="100%" height="100%" fill="url(#redDot)"/>
    43     <rect width="100%" height="100%" fill="url(#limeDot)"/>
    44   </svg>
    46 </body>
    47 </html>

mercurial