1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00
Commit Graph

100 Commits

Author SHA1 Message Date
Simon Sapin
2666e33a15 Avoid a crash with zero-sized background images. Fix #217. 2014-09-16 20:44:35 +01:00
Simon Sapin
43d1e73e65 Fix code formatting. (Clean flake8!) 2014-04-27 12:29:55 +01:00
Simon Sapin
c34221d215 2014. 2014-01-10 14:27:02 +00:00
Simon Sapin
637a4933c2 Add 'image-resolution' from css-images-3.
This is the only way to use high-resolution images in the 'content' property,
where individual images can not be selected to use the 'width' or 'height'
properties.
2013-12-31 15:31:35 +01:00
Guillaume Ayoub
85c1fbaab3 Remove print() in tests 2013-12-27 18:01:32 +01:00
Guillaume Ayoub
b0c7dd5e4e Update columns posititions when tables are translated (fix #82) 2013-12-27 17:06:31 +01:00
Guillaume Ayoub
3e49ce8abe Don't crash when drawing borders on 0-size boxes (fix #146) 2013-12-18 15:30:59 +01:00
Guillaume Ayoub
d4493e5707 Merge branch 'master' into border3 2013-12-10 11:02:36 +01:00
Guillaume Ayoub
5b0befa91a Fix overconstrained test 2013-12-10 11:00:18 +01:00
Guillaume Ayoub
82a188e86a Merge pull request #112 from Kozea/html5lib
Switch to html5lib to parse HTML. Fix #12.
2013-10-17 05:22:51 -07:00
Guillaume Ayoub
3d816023dd Remove stupid line in test, fixes pypy support 2013-08-12 13:32:18 +02:00
Simon Sapin
4069a1cc36 Switch to html5lib to parse HTML. Fix #12. 2013-07-24 13:21:48 +01:00
Simon Sapin
3313c061ae Fix #84: Mak loading an author stylesheet not fatal. 2013-06-20 22:11:19 +01:00
Guillaume Ayoub
dccd562c6b Don't clip the border when overflow: hidden 2013-06-05 18:45:16 +02:00
Simon Sapin
25bab1dc6c Fix #76: repeating <thead> and <tfoot> on every page with border-collapse. 2013-04-30 10:56:43 +02:00
Simon Sapin
77f8894ced Add pixel tests for gradients. 2013-04-17 18:02:19 +02:00
Simon Sapin
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
cef113c5a7 Add background-repeat: round 2013-03-30 23:43:19 +01:00
Simon Sapin
b5de53169c Add backgroun-repeat: space 2013-03-30 22:49:47 +01:00
Simon Sapin
8a28f0f08a Compat with cairocffi 0.4 / CFFI 0.6 2013-03-30 20:55:23 +01:00
Simon Sapin
31d258ba84 Bug fix: use each layer’s own painting (clip) area 2013-03-26 14:07:44 +01:00
Simon Sapin
055203cd97 Parse background-size in the background shorthand. 2013-03-25 19:05:04 +01:00
Simon Sapin
35b3c1ad8d Upgrade background-position to Level 3. 2013-03-25 18:59:18 +01:00
Simon Sapin
c8bd3a3782 Allow percentages in background-size. 2013-03-21 12:53:53 +01:00
Simon Sapin
7a4faac087 Add background-attachement: local, same as scroll.
Since we have no scrolling mechanism,
local and scroll are treated the same.
2013-03-20 13:34:13 +01:00
Simon Sapin
1616e37259 Upgrade the background shorthand for multiple layers. 2013-03-20 13:19:48 +01:00
Simon Sapin
911ed43169 Add support for multiple backgrounds (except for the shorthand.) 2013-03-19 18:29:58 +01:00
Simon Sapin
408b7d6605 Fix #49: Division by 0 on dashed or dotted border smaller than one dot/dash. 2013-03-18 13:44:12 +01:00
Simon Sapin
3a42860018 Move GDK-PixBuf code to cairocffi.pixbuf 2013-02-26 15:04:52 +01:00
Simon Sapin
d310ffe47d Merge branch 'cffi'
Conflicts:
	weasyprint/text.py
2013-02-25 15:23:59 +01:00
Simon Sapin
829c758788 Keep currentColor as a computed value, resolve in used value
According to the css3-color errata:
http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html
2013-01-23 16:52:47 +01:00
Simon Sapin
294be548b0 All tests passsing with cffi!! 2012-12-29 14:55:59 +01:00
Simon Sapin
5baee96712 Use pixbuf through cffi. 2012-12-29 11:58:52 +01:00
Simon Sapin
c70b00b5b8 More WIP: cairocffi and pango cffi. 2012-12-29 01:36:06 +01:00
Simon Sapin
d2040ac77a WIP: use Pango and cairo through cffi.
Use cairocffi
Ditch pycairo, PyGTK and PyGobject-introspection.
2012-12-28 23:17:04 +01:00
Simon Sapin
f243dbcca3 Embed JPEG-encoded images in PDF. Fix #6
If an image is in JPEG format, embed it as-is in the PDF output.
This often results in smaller PDF file size.

(The image is still decoded however,
so there is no rendering speed improvement.)
2012-12-20 20:12:52 +01:00
Simon Sapin
4f8deadc47 Work around a bug in old pycairo versions.
See
http://cgit.freedesktop.org/py2cairo/commit/?id=cab2c1295499f57247854e8635b77ca716fa9730
2012-12-12 09:25:28 +01:00
Simon Sapin
f8457ba3a5 Move save_pixels_to_png() to the test_draw module.
This function is only used for tests.
2012-10-07 09:49:07 +02:00
Simon Sapin
a0bb1f2752 Have metadata account for CSS transforms. 2012-10-06 22:09:17 +02:00
Simon Sapin
28cb59fc8b Pre-compute transformation matricies.
… so that they are available when getting meta-data.
2012-10-06 11:26:55 +02:00
Simon Sapin
a05470d006 Remove with_size in Document.write_png
The method now always returns a tuple with the size.
HTML.write_png however still does not return the size.
2012-10-05 18:27:45 +02:00
Simon Sapin
09ff532828 The Document is back! (But different.) 2012-10-02 18:59:02 +02:00
Simon Sapin
d17ee64fa1 Do not repeat a block’s margin-top after a break. 2012-10-02 15:59:58 +02:00
Simon Sapin
f33c91742d Get rid of the Document class (finally!) 2012-09-25 16:37:18 +02:00
Simon Sapin
20fe60040d Document low-level output functions. 2012-09-20 17:57:15 +02:00
Simon Sapin
ac220e9a4d Refactor the PNG output to use the low-level API
… not intermediate ImageSurface objects.
2012-09-18 12:58:58 +02:00
Simon Sapin
6354398139 Add a low-level public API 2012-09-12 19:33:16 +02:00
Simon Sapin
20f46ea968 Fix #886, only apply clip to absopos. 2012-08-03 17:19:04 +02:00
Simon Sapin
ba8a55d5c0 Add support for outlines. 2012-08-03 16:22:32 +02:00
Simon Sapin
d1971b6e63 Remove unused imports. 2012-08-03 13:32:42 +02:00