layout/reftests/svg/mask-img.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <body style="margin:0">
michael@0 4 <div style="height:50px"></div>
michael@0 5 <img border=0 src='data:image/svg+xml,
michael@0 6 <!-- vim: set expandtab ts=2 sw=2 tw=80: -->
michael@0 7 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
michael@0 8 xmlns:xlink="http://www.w3.org/1999/xlink"
michael@0 9 viewBox="0 0 700 80">
michael@0 10 <defs>
michael@0 11 <style type="text/css">
michael@0 12 .fillSpan {
michael@0 13 fill: lightgrey;
michael@0 14 stroke: black;
michael@0 15 }
michael@0 16 </style>
michael@0 17 <!-- Fade out effect -->
michael@0 18 <mask id="fadeout" maskContentUnits="objectBoundingBox">
michael@0 19 <rect x="-0.05" y="-0.05" width="1.1" height="1.1"
michael@0 20 fill="url(%23fadeoutGrad)"/>
michael@0 21 </mask>
michael@0 22 <linearGradient id="fadeoutGrad">
michael@0 23 <stop offset="0" stop-color="white" stop-opacity="1"/>
michael@0 24 <stop offset="0.35" stop-color="white" stop-opacity="1"/>
michael@0 25 <stop offset="0.9" stop-color="white" stop-opacity="0"/>
michael@0 26 </linearGradient>
michael@0 27 </defs>
michael@0 28 <rect width="150" height="80" class="fillSpan" mask="url(%23fadeout)"/>
michael@0 29 </svg>
michael@0 30 ' width="700">
michael@0 31 </body>
michael@0 32 </html>

mercurial