layout/reftests/bugs/718521.html

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.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Rounded rectangle clipping test</title>
michael@0 5 <style>
michael@0 6 .clipround {
michael@0 7 left:100px;
michael@0 8 top:100px;
michael@0 9 position:absolute;
michael@0 10 width:700px;
michael@0 11 height:380px;
michael@0 12 overflow:hidden;
michael@0 13 border-radius:45px;
michael@0 14 }
michael@0 15 canvas {
michael@0 16 position:absolute;
michael@0 17 }
michael@0 18 #nrcCanvas0 {
michael@0 19 left:0px;
michael@0 20 top:0px;
michael@0 21 }
michael@0 22 #nrcCanvas1 {
michael@0 23 left:320px;
michael@0 24 top:0px;
michael@0 25 }
michael@0 26 #nrcCanvas2 {
michael@0 27 left:0px;
michael@0 28 top:240px;
michael@0 29 }
michael@0 30 </style>
michael@0 31 </head>
michael@0 32
michael@0 33 <body>
michael@0 34 <div class="clipround">
michael@0 35 <canvas id="nrcCanvas0" width="320" height="260"></canvas>
michael@0 36 <canvas id="nrcCanvas1" width="320" height="260"></canvas>
michael@0 37 <canvas id="nrcCanvas2" width="320" height="260"></canvas>
michael@0 38 </div>
michael@0 39
michael@0 40 <script>
michael@0 41 drawShapes('nrcCanvas0');
michael@0 42 drawShapes('nrcCanvas1');
michael@0 43 drawShapes('nrcCanvas2');
michael@0 44
michael@0 45 function drawShapes(elName) {
michael@0 46 var ctxt = document.getElementById(elName).getContext('2d');
michael@0 47 ctxt.fillStyle = '#00ff00';
michael@0 48 ctxt.fillRect(0, 0, 300, 230);
michael@0 49 }
michael@0 50 </script>
michael@0 51 </body>
michael@0 52 </html>

mercurial