Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <style> |
michael@0 | 4 | canvas { |
michael@0 | 5 | position: absolute; |
michael@0 | 6 | top: 100px; |
michael@0 | 7 | left: 100px; |
michael@0 | 8 | width: 300px; |
michael@0 | 9 | height: 300px; |
michael@0 | 10 | } |
michael@0 | 11 | div.inner { |
michael@0 | 12 | position: absolute; |
michael@0 | 13 | top: 200px; |
michael@0 | 14 | left: 200px; |
michael@0 | 15 | width: 100px; |
michael@0 | 16 | height: 100px; |
michael@0 | 17 | opacity: 0.5; |
michael@0 | 18 | background-color: #ffffff; |
michael@0 | 19 | } |
michael@0 | 20 | </style> |
michael@0 | 21 | </head> |
michael@0 | 22 | <body> |
michael@0 | 23 | <canvas id="c" height="300px" width="300px"></canvas> |
michael@0 | 24 | <script> |
michael@0 | 25 | var c = document.getElementById('c'); |
michael@0 | 26 | var ctxt = c.getContext('2d'); |
michael@0 | 27 | ctxt.fillStyle = 'rgb(0,255,0)'; |
michael@0 | 28 | ctxt.fillRect(0, 0, 300, 300); |
michael@0 | 29 | </script> |
michael@0 | 30 | <div class="inner"> |
michael@0 | 31 | </div> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |