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:420px; |
michael@0 | 11 | height:140px; |
michael@0 | 12 | line-height:28px; |
michael@0 | 13 | } |
michael@0 | 14 | .inner { |
michael@0 | 15 | float:left; |
michael@0 | 16 | width:140px; |
michael@0 | 17 | height:15.4px; |
michael@0 | 18 | background:black; |
michael@0 | 19 | } |
michael@0 | 20 | canvas { |
michael@0 | 21 | display:block; |
michael@0 | 22 | float:left; |
michael@0 | 23 | } |
michael@0 | 24 | </style> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <div class="outer"><div class="inner"></div><canvas id="c" width="10" height="10" style="width:14px; height:14px;"></canvas></div> |
michael@0 | 28 | <script> |
michael@0 | 29 | var ctx = document.getElementById("c").getContext("2d"); |
michael@0 | 30 | ctx.fillStyle = "black"; |
michael@0 | 31 | ctx.fillRect(0, 0, 10, 10); |
michael@0 | 32 | </script> |
michael@0 | 33 | </body> |
michael@0 | 34 | </html> |