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

4413 Commits

Author SHA1 Message Date
Simon Sapin
217086a3ff Bug fix with 'color: currentColor' 2011-08-09 12:45:30 +02:00
Salem Harrache
0849ee3897 Merge branch 'master' of gitorious.org:weasyprint/weasyprint
Conflicts:
	weasy/draw.py
	weasy/layout/__init__.py
	weasy/tests/test_web/runwebsite.py
2011-08-09 10:41:10 +02:00
Salem Harrache
9ad3608594 add drawing img (with display block) 2011-08-09 10:15:53 +02:00
Simon Sapin
0daf4ba25c Draw the root element’s background on the entire canvas. 2011-08-08 21:20:43 +02:00
Simon Sapin
0573325f25 Make a pip requirements file for tests. 2011-08-08 20:23:48 +02:00
Simon Sapin
0df46cc436 Fix multi-page PNG. 2011-08-08 17:04:01 +02:00
Simon Sapin
2c9f34061c Fix percentage heights. (Except for absolute positioning) 2011-08-08 16:17:10 +02:00
Simon Sapin
7a3088737e Remove misleading None values for Box.height and Box.width. 2011-08-08 15:58:38 +02:00
Simon Sapin
3b8ba9a15c Remove an useless loop. 2011-08-08 15:24:21 +02:00
Simon Sapin
9ea63fe7ff Implement the background shorthand. 2011-08-08 15:06:27 +02:00
Simon Sapin
1d16c5fe23 Bug fix: border and list-style shorthands set unspecified values to initial. 2011-08-08 12:26:53 +02:00
Simon Sapin
c58840c9db Add support for currentColor 2011-08-08 11:58:36 +02:00
Simon Sapin
f735ea4c0a (Untested) fix for 'font-weight: bolder' or 'lighter' on the root elememt. 2011-08-08 11:28:02 +02:00
Simon Sapin
49eb28be2a Implement the list-style shorthand. 2011-08-08 10:40:10 +02:00
Simon Sapin
b15771a1be Implement the 'border' and 'outline' shorthand properties. 2011-08-08 10:23:35 +02:00
Simon Sapin
da6f9c96e8 Add PNGDocument.write_page_to(index) (untested) 2011-08-05 18:19:44 +02:00
Simon Sapin
d4267cf191 Get rid of the Document.do_* methods. 2011-08-05 16:19:22 +02:00
Simon Sapin
3db19d8fef Unify PNG and PDF with a Document.write_to(target) API.
PNG gets all pages in a single file, each above the next.
2011-08-05 15:55:34 +02:00
Simon Sapin
5a65afb111 Add default input for the test web app. 2011-08-05 12:09:58 +02:00
Simon Sapin
623f585722 Simplify test webapp to not use kalamar. 2011-08-05 11:49:05 +02:00
Salem Harrache
97d78d1205 add drawing border 2011-08-05 11:31:16 +02:00
Salem Harrache
1dcf13c580 move urljoining to function 2011-08-05 11:16:44 +02:00
Salem Harrache
6029d01739 compute the linebox height, and add PDFDocument that allows to get a PDF from html 2011-08-01 18:28:05 +02:00
Salem Harrache
4e10b4533a compute real positions in linebox and fix bug in linebreaking functions 2011-07-29 14:07:27 +02:00
Salem Harrache
67232b38fb add PNGDocument class, a document that allows to render the html to png 2011-07-29 01:14:05 +02:00
Salem Harrache
9a80649adf add docstring dor TextFragment class 2011-07-29 01:13:07 +02:00
Salem Harrache
aea403101b add web interface for test 2011-07-29 01:11:13 +02:00
Salem Harrache
4d53499369 add drawing textbox 2011-07-28 18:39:35 +02:00
Salem Harrache
3d0ecf8666 fix many things for drawing 2011-07-27 18:15:57 +02:00
Salem Harrache
1ada5b856b integrating inline formatting contex in building of boxes 2011-07-26 17:34:55 +02:00
Salem Harrache
02986953bf set font-size from TextBox in TextFragment 2011-07-26 17:29:43 +02:00
Salem Harrache
e82a440843 ignore html comments but also HTML/XML entities. We need to find another way to ignore html comments 2011-07-26 17:28:43 +02:00
Simon Sapin
587457ff0e Only count children in normal flow for block height. 2011-07-22 18:16:31 +02:00
Simon Sapin
589afdb28e Break weasy.layout into multiple modules. 2011-07-22 16:34:32 +02:00
Simon Sapin
1cb799d522 Make weasy.layout a package. 2011-07-22 16:20:03 +02:00
Simon Sapin
6211521247 Implement page borders and padding in layout. 2011-07-22 15:36:49 +02:00
Simon Sapin
5341bb4dbf Add more computed sizes on boxes, make them methods with docstrings. 2011-07-22 15:13:56 +02:00
Simon Sapin
bdcbdabf33 Move some stuff to a new css.utils module. 2011-07-22 15:10:23 +02:00
Simon Sapin
2e03c49c58 Use Python data structures instead of parsing CSS for initial values. 2011-07-22 15:10:23 +02:00
Simon Sapin
b86a797155 Get rid of DummyPropertyValue, just use lists. 2011-07-22 15:10:23 +02:00
Simon Sapin
45edd5c43a Comment the data structures for CSS. 2011-07-22 15:10:23 +02:00
Salem Harrache
16f135e5bd Merge branch 'master' of gitorious.org:weasyprint/weasyprint
Conflicts:
	weasy/layout.py
2011-07-22 14:56:18 +02:00
Salem Harrache
238fb4436d add LineBoxFormatting class for breaking linebox 2011-07-21 18:34:43 +02:00
Simon Sapin
7d30fb0a01 This is what was meant, but getattr was pointless without it. 2011-07-21 14:21:17 +02:00
Simon Sapin
be06157e20 More docstrings. 2011-07-21 14:21:17 +02:00
Simon Sapin
9547c0c0a8 Rename and update docstring for css.annotate_document. 2011-07-21 14:04:33 +02:00
Simon Sapin
9fa954b3bd Make user and user-agent stylesheets attributes of Document objects. 2011-07-21 13:58:01 +02:00
Simon Sapin
69156d98af Have the document set its own attributes. 2011-07-21 13:47:42 +02:00
Simon Sapin
0343b8fef3 Remove unused imports. 2011-07-21 13:31:42 +02:00
Simon Sapin
7bac0410cc Comment Document attributes. 2011-07-21 12:47:53 +02:00