layout/reftests/svg/objectBoundingBox-and-pattern-02.svg

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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">
     7     <title>Testcase for elements referencing an objectBoundingBox pattern with a viewBox</title>
     9     <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=605022 -->
    11     <defs>
    12       <pattern id="test" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox" viewBox="0 0 20 20">
    13         <rect width="20" height="20" stroke="none" fill="lime"/>
    14         <rect width="1" height="1" stroke="none" fill="red"/>
    15       </pattern>
    16       <pattern id="cover" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox">
    17         <rect width="0.01" height="0.01" stroke="none" fill="lime"/>
    18       </pattern>
    19     </defs>
    21   <rect width="100%" height="100%" fill="lime"/>
    22   <rect x="20" y="20" width="200" height="200" fill="url(#test)"/>
    23   <rect x="20" y="20" width="200" height="200" fill="url(#cover)"/>
    24 </svg>

mercurial