39 Commits

Author SHA1 Message Date
MoyuScript
46ff724599 Fix z-index ordering bug 2013-12-23 15:27:46 +02:00
MoyuScript
19754ac30e incorect z-index sorting fixed
If you omit compare function in javascript `sort()` method it will sort  lexicographically (in dictionary order) according to the string conversion of each element. 

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters

For example 
[0, 9, 8, 10].sort()
will place element with z-index 10 on 2nd position of the array
2013-11-21 20:37:40 +02:00
MoyuScript
c54eca0ae8 Fix background color rendering layering with no documentElement color 2013-09-04 20:03:16 +03:00
MoyuScript
908eb1361a stacking context creator should be at the bottom
passes z-index12. issue #256
2013-08-15 23:24:01 +08:00
MoyuScript
9cace5316f preserve stacking nesting with special ancestor. issue #256 2013-08-15 02:12:38 +08:00
MoyuScript
ef7ffef87d passes z-index8 non-positioned element with opactiy < 1
The MDN article Understanding_z_index/Stacking_and_float is wrong about this
2013-08-06 10:34:13 +08:00
MoyuScript
caf020c9e7 coding optimizations 2013-08-06 10:01:20 +08:00
MoyuScript
6307f7c724 z-index overhaul. relative above static; negative z-index
1. when stacking without z-index, positioned > floated > normal flow
2. supports negative z-index
3. new stacking context formed when opacity < 1 (standard)
4. new stacking context formed for position:fixed (no standard yet, done in mobile webkit and chrome 22+)
2013-08-06 03:36:12 +08:00
MoyuScript
336c5ac4e1 refactored renderer 2013-01-03 23:15:06 +02:00
MoyuScript
f8586e81dd refactoring 2012-12-29 21:06:40 +02:00
MoyuScript
fb731e3037 Moved renderer logic to renderer.js 2012-12-29 17:43:15 +02:00
MoyuScript
c5d82acdf6 Switched build process to use grunt 2012-11-25 20:59:31 +02:00
MoyuScript
d88e72e1b6 Added a sublime-project file for Sublime Text 2 that contains the detected linting and standards set. Allows Sublime Text 2 to automatically follow the standards and have live linting enabled. Trimmed useless whitespace. 2012-05-29 11:26:26 +10:00
MoyuScript
62b66abd1b Fixed support for other Renderers other than Canvas 2012-04-17 10:57:25 +02:00
MoyuScript
35fd0ae8bf bug fixes 2012-03-03 21:03:59 +02:00
MoyuScript
ffcd5c04fb Split renderers to their own objects 2012-03-02 20:35:48 +02:00
MoyuScript
62fcedba6f bug fixes, and further simplification of API 2012-03-02 19:07:15 +02:00
MoyuScript
243a3ae8f5 simplified API and cleaned up code 2012-03-02 18:05:03 +02:00
MoyuScript
a8e81bcc37 bug fixes for body background & firefox font 2012-03-02 14:43:25 +02:00
MoyuScript
4727938448 SVG taint fix, and additional taint testing options 2012-03-01 22:31:51 +02:00
MoyuScript
dcd0c7d691 added support for CORS images and option to create canvas as tainted 2012-03-01 19:44:25 +02:00
MoyuScript
9400cad4c4 make FlashCanvas check closure compiler friendly 2012-02-26 23:04:46 +01:00
MoyuScript
683742bfbe renamed html2canvas.log to h2clog (minifies better)
renamed the html2canvas.canvasContext to h2cRenderContext,
it's used by both backends and thus not canvas specific
2012-02-26 22:57:22 +01:00
MoyuScript
dd0331fd81 added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
MoyuScript
de34441df8 add support for selecting single elements to render 2012-02-20 17:16:57 +02:00
MoyuScript
072e1645cf fix warnings reported by the closure compiler 2012-02-18 23:01:18 +01:00
MoyuScript
d9aa41f4dc added logs for used renderer 2011-12-21 23:01:48 +01:00
MoyuScript
70b3886814 clear canvas before rendering to allow jpeg export
* normally when exporting jpeg any pixel that was transparent
   becomes black, make them white
 * check for window.console.log before use (avoid crash)
 * html2canvas.Parse: fix missing call to html2canvas.Util.Extend for the
   given options
2011-11-26 17:38:57 +01:00
MoyuScript
4615eb3073 Improve build system: read version from version.txt, fix build without compiler
* read the version from version.txt
 * set default target to build
 * added dependencies to all targets
 * allow the build to run without a local copy of the closure compiler
 * updated license header with @VERSION@ which will be replaced during the build
 * added the license header to all files (that one will be stripped out by the closure compiler)
2011-11-16 00:36:06 +01:00
MoyuScript
0509f31b26 Fixed a width/height issue that caused smaller elements to render full body width. 2011-10-14 00:47:17 -05:00
MoyuScript
f260da2c61 merged from dev 2011-09-12 21:35:37 +03:00
MoyuScript
08558034b4 cleanup 2011-08-11 15:35:02 +03:00
MoyuScript
40418bd957 rewrote z-index ordering logic 2011-08-02 21:07:51 +03:00
MoyuScript
e027a7496e fixed z-index ordering bug with backgrounds 2011-07-29 19:22:38 +03:00
MoyuScript
9ae4ae51fe fixed few minor bugs, added some support for overflow (hidden|scroll|auto) 2011-07-28 21:22:13 +03:00
MoyuScript
db9a1d16ad added support for proxys, fixed a lot of background position issues, added test console 2011-07-21 03:12:17 +03:00
MoyuScript
d3d24c4d6e Added more logging and all renderers 2011-07-18 22:43:52 +03:00
MoyuScript
1015f1312d Added canvasRenderer 2011-07-18 13:18:29 +03:00
MoyuScript
fcf819d4b8 added rendering stacks, queues and support z-index positioning 2011-07-17 23:27:45 +03:00