Wed, 31 Dec 2014 07:16:47 +0100
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 | <style> |
michael@0 | 5 | .outer { |
michael@0 | 6 | background:yellow; |
michael@0 | 7 | position:absolute; |
michael@0 | 8 | left:100px; |
michael@0 | 9 | top:100px; |
michael@0 | 10 | width:300px; |
michael@0 | 11 | height:100px; |
michael@0 | 12 | -moz-transform:scale(1.4); |
michael@0 | 13 | -moz-transform-origin:top left; |
michael@0 | 14 | transform:scale(1.4); |
michael@0 | 15 | transform-origin:top left; |
michael@0 | 16 | } |
michael@0 | 17 | .inner { |
michael@0 | 18 | float:left; |
michael@0 | 19 | width:100px; |
michael@0 | 20 | height:11px; |
michael@0 | 21 | background:black; |
michael@0 | 22 | } |
michael@0 | 23 | canvas { |
michael@0 | 24 | display:block; |
michael@0 | 25 | float:left; |
michael@0 | 26 | } |
michael@0 | 27 | </style> |
michael@0 | 28 | </head> |
michael@0 | 29 | <body> |
michael@0 | 30 | <div class="outer"><div class="inner"></div><canvas id="c" width="10" height="10"></canvas></div> |
michael@0 | 31 | <script> |
michael@0 | 32 | var ctx = document.getElementById("c").getContext("2d"); |
michael@0 | 33 | ctx.fillStyle = "black"; |
michael@0 | 34 | ctx.fillRect(0, 0, 10, 10); |
michael@0 | 35 | </script> |
michael@0 | 36 | </body> |
michael@0 | 37 | </html> |