Commit Graph

54 Commits

Author SHA1 Message Date
Niklas von Hertzen
ea6062c85b Fix individual border rendering (Fix #1349) 2018-01-02 20:04:28 +08:00
Niklas von Hertzen
3965a0fd40 Fix backgroundColor option documentation (Fix #1164) 2017-12-12 21:23:53 +08:00
Matthias Christen
8ef3861a5c added support for radial gradients 2017-12-12 20:16:04 +08:00
Matthias Christen
d1e870de88 added support for gradient background size and fixed linear gradient angle when vendor prefix is used 2017-12-09 23:07:27 +01:00
Niklas von Hertzen
a6a3c1bd0f Fix tests and refactor background calculations out from Renderer 2017-12-09 17:45:58 +08:00
Matthias Christen
850338a76a added support for background-origin: content-box, fixed background-origin related background sizes 2017-12-09 00:12:29 +01:00
Niklas von Hertzen
9445b0b598 Inline fonts for ForeignObjectRenderer 2017-10-18 20:34:17 +08:00
Niklas von Hertzen
53dd885279 Implementing cropping and dimension options for rendering (Fix #1230) 2017-09-27 22:14:50 +08:00
Niklas von Hertzen
a73dbf8067 Implement foreignObject renderer 2017-08-17 23:14:44 +08:00
Niklas von Hertzen
c765e2042f Don't render 0 sized images 2017-08-13 12:16:48 +08:00
Niklas von Hertzen
77393074ba Use tree order when z-index is the same 2017-08-09 11:52:42 +08:00
Niklas von Hertzen
58d1bef3b6 Beging implementing reftests 2017-08-09 00:52:56 +08:00
Niklas von Hertzen
93f08c7547 Implement RefTestRenderer 2017-08-07 00:26:09 +08:00
Niklas von Hertzen
a2895691ba Extract render target logic out of renderer to be target agnostic 2017-08-06 20:21:35 +08:00
Niklas von Hertzen
8b8c080841 0.5.0 rewrite 2014-01-19 18:04:27 +02:00
Niklas von Hertzen
46cc8b6975 Fix z-index ordering bug 2013-12-23 15:27:46 +02:00
Grom-S
f00b23a9ec 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
Niklas von Hertzen
e9c3d9d332 Fix background color rendering layering with no documentElement color 2013-09-04 20:03:16 +03:00
arrix
564634ba97 stacking context creator should be at the bottom
passes z-index12. issue #256
2013-08-15 23:24:01 +08:00
arrix
ea7d6b485d preserve stacking nesting with special ancestor. issue #256 2013-08-15 02:12:38 +08:00
arrix
02ab96dc5f 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
arrix
65746bd2e3 coding optimizations 2013-08-06 10:01:20 +08:00
arrix
16d3bef255 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
Niklas von Hertzen
a313524aa4 refactored renderer 2013-01-03 23:15:06 +02:00
Niklas von Hertzen
c72a02bf64 refactoring 2012-12-29 21:06:40 +02:00
Niklas von Hertzen
c3e9636e4f Moved renderer logic to renderer.js 2012-12-29 17:43:15 +02:00
Niklas von Hertzen
084bf4b039 Switched build process to use grunt 2012-11-25 20:59:31 +02:00
Benjamin Lupton
1059314258 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
Paolo
8d965029da Fixed support for other Renderers other than Canvas 2012-04-17 10:57:25 +02:00
Niklas von Hertzen
3d7a6374ad bug fixes 2012-03-03 21:03:59 +02:00
Niklas von Hertzen
94f2f799a4 Split renderers to their own objects 2012-03-02 20:35:48 +02:00
Niklas von Hertzen
cad3be2c66 bug fixes, and further simplification of API 2012-03-02 19:07:15 +02:00
Niklas von Hertzen
c7d526c9ea simplified API and cleaned up code 2012-03-02 18:05:03 +02:00
Niklas von Hertzen
bf994849e0 bug fixes for body background & firefox font 2012-03-02 14:43:25 +02:00
Niklas von Hertzen
2dc8b9385e SVG taint fix, and additional taint testing options 2012-03-01 22:31:51 +02:00
Niklas von Hertzen
3ad49efa00 added support for CORS images and option to create canvas as tainted 2012-03-01 19:44:25 +02:00
Obexer Christoph
b6d6f44678 make FlashCanvas check closure compiler friendly 2012-02-26 23:04:46 +01:00
Obexer Christoph
c24223ca85 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
Niklas von Hertzen
b65357c55d added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
Niklas von Hertzen
0cb252ada9 add support for selecting single elements to render 2012-02-20 17:16:57 +02:00
Obexer Christoph
36ff1ec7aa fix warnings reported by the closure compiler 2012-02-18 23:01:18 +01:00
Obexer Christoph
447db0c5f5 added logs for used renderer 2011-12-21 23:01:48 +01:00
Obexer Christoph
044b612d6e 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
Obexer Christoph
16c74d1f8c 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
Keith Hoffmann
2ca4b88702 Fixed a width/height issue that caused smaller elements to render full body width. 2011-10-14 00:47:17 -05:00
Niklas von Hertzen
27ee971bba merged from dev 2011-09-12 21:35:37 +03:00
Niklas von Hertzen
be241066ce cleanup 2011-08-11 15:35:02 +03:00
Niklas von Hertzen
d8b4398278 rewrote z-index ordering logic 2011-08-02 21:07:51 +03:00
Niklas von Hertzen
78e1f9829f fixed z-index ordering bug with backgrounds 2011-07-29 19:22:38 +03:00
Niklas von Hertzen
d5c443a14c fixed few minor bugs, added some support for overflow (hidden|scroll|auto) 2011-07-28 21:22:13 +03:00