layout/reftests/image-element/pattern-html-02.html

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/licenses/publicdomain/
michael@0 4
michael@0 5 Test painting patterns with scaling by background-size and
michael@0 6 -moz-transform.
michael@0 7 -->
michael@0 8 <!DOCTYPE html>
michael@0 9 <html>
michael@0 10 <body style="margin:0;">
michael@0 11 <div style="background: white; overflow: hidden;">
michael@0 12 <div style="margin:20px 0px 20px 40px; width:40px; height:20px;
michael@0 13 background:-moz-element(#p);
michael@0 14 -moz-transform:scale(3);"></div>
michael@0 15 <div style="width:120px; height:60px;
michael@0 16 background:-moz-element(#p);
michael@0 17 background-size:300% 300%;"></div>
michael@0 18
michael@0 19 <svg>
michael@0 20 <pattern id="p" patternUnits="userSpaceOnUse"
michael@0 21 x="0" y="0" width="20" height="20">
michael@0 22 <rect x="5" y="5" width="10" height="10" fill="black"></rect>
michael@0 23 </pattern>
michael@0 24 </svg>
michael@0 25 </div>
michael@0 26 </body>
michael@0 27 </html>

mercurial