layout/reftests/svg/svg-integration/mask-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.

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 6 <head>
michael@0 7 <title>Test SVG masking of transformed HTML elements</title>
michael@0 8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=769103 -->
michael@0 9 <style type="text/css">
michael@0 10
michael@0 11 * { margin: 0; border: 0; padding: 0;}
michael@0 12
michael@0 13 div {
michael@0 14 position: absolute;
michael@0 15 left: 50px;
michael@0 16 top: 50px;
michael@0 17 width: 150px;
michael@0 18 height: 150px;
michael@0 19 transform: scale(2,2);
michael@0 20 transform-origin: 0 0;
michael@0 21 }
michael@0 22
michael@0 23 </style>
michael@0 24 </head>
michael@0 25 <body bgcolor="lime">
michael@0 26
michael@0 27 <svg xmlns="http://www.w3.org/2000/svg" width="350" height="350"
michael@0 28 style="display:block; position:absolute;">
michael@0 29 <mask id="mask1" x="0" y="0" width="1" height="1" maskContentUnits="objectBoundingBox">
michael@0 30 <circle cx="0.5" cy="0.5" r="0.48" fill="white"/>
michael@0 31 </mask>
michael@0 32 <mask id="mask2" x="0" y="0" width="1" height="1" maskContentUnits="objectBoundingBox">
michael@0 33 <circle cx="0.5" cy="0.5" r="0.50" fill="white"/>
michael@0 34 </mask>
michael@0 35 <circle cx="200" cy="200" r="147" fill="red"/>
michael@0 36 </svg>
michael@0 37
michael@0 38 <div style="background: red; mask: url(#mask1);"/>
michael@0 39 <div style="background: lime; mask: url(#mask2);"/>
michael@0 40
michael@0 41 </body>
michael@0 42 </html>

mercurial