Simon Sapin
d1971b6e63
Remove unused imports.
2012-08-03 13:32:42 +02:00
Simon Sapin
d401e7241b
Kill Document in layout/*.py
2012-07-12 17:13:21 +02:00
Simon Sapin
30a5708373
Kill Document in formatting_structure/build.py and html.py
2012-07-12 15:54:22 +02:00
Simon Sapin
925669d37c
Fix floats across pages.
2012-07-06 18:35:23 +02:00
Simon Sapin
22cb02c01a
Update page sizing to the current ED
...
Namely:
* The size sets the page’s containing block
* 'auto' margins are now supported
* The width, min-width, max-width, height, min-height
and max-height properties are now supported.
2012-07-03 14:54:15 +02:00
Simon Sapin
fb3777b317
Get rid of page.outer_width and outer_height
...
.margin_width() and .margin_height() can be used instead.
2012-07-03 14:07:39 +02:00
Simon Sapin
b89926284a
Fix the Variable Dimension rules, add tests.
...
This implements the updated algorithm described in
https://github.com/SimonSapin/css/blob/81b5d93d0d/margin-boxes-variable-dimension
2012-07-02 18:15:57 +02:00
Simon Sapin
e28fdb557b
Implement a simpler version of Variable Dimension for margin boxes.
...
https://github.com/SimonSapin/css/blob/8c17fbe/margin-boxes-variable-dimension
2012-07-02 11:07:44 +02:00
Simon Sapin
13184721be
Non-auto width is not enough anymore for a page-margin box
...
The latest ED makes no mention of non-auto widths for
generating page-margin boxes. Only 'content: none' matters:
http://dev.w3.org/csswg/css3-page/#populating-margin-boxes
2012-07-02 11:07:44 +02:00
Simon Sapin
694863ed62
Fix crashes.
...
* Some fixed boxes did not have any layout
* Validator for the 'float' property masked the builtin,
float('inf') returned None.
2012-06-29 17:13:10 +02:00
Guillaume Ayoub
6cbdab0799
Fix various tests, remove monkeypatch validation
2012-06-06 12:52:02 +02:00
Guillaume Ayoub
043d71dc29
Pass the fixed_boxes argument instead of using current_page
2012-06-06 12:04:09 +02:00
Guillaume Ayoub
568e0aeb70
Fix the drawing order of fixed boxes
2012-06-06 09:49:56 +02:00
Guillaume Ayoub
95a74c2abb
Merge branch 'master' into float
2012-06-02 13:57:18 +02:00
Guillaume Ayoub
b732ba09d4
Merge branch 'float' of github.com:Kozea/WeasyPrint into float
...
Conflicts:
weasyprint/layout/pages.py
2012-06-02 13:56:49 +02:00
Simon Sapin
86bb8eede8
Fix margin boxes positionning.
2012-06-02 13:04:33 +02:00
Simon Sapin
81a63a8ca7
Merge branch 'master' into float
...
Conflicts:
weasyprint/layout/pages.py
weasyprint/layout/preferred.py
2012-06-02 08:35:17 +02:00
Simon Sapin
3cd540eaa9
Fix shrink-to-fit in PNG: have the same hinting as in layout.
2012-06-02 08:28:41 +02:00
Simon Sapin
491299f668
Content-empty pages need layout and margin boxes too.
2012-06-01 10:30:06 +02:00
Guillaume Ayoub
6449ee4cbf
Absolute doesn't work yet, but much better than before
2012-05-30 03:27:08 +02:00
Guillaume Ayoub
f978dd6963
Add untested support for position: fixed
2012-05-23 11:30:52 +02:00
Guillaume Ayoub
8d1b86c40f
Layout in place absolute boxes
2012-05-10 20:12:47 +02:00
Guillaume Ayoub
b20022ee11
Fix some little things about absolute blocks
2012-05-10 13:56:21 +02:00
Guillaume Ayoub
2ea63210bf
Add a list of absolute elements
2012-05-09 19:01:32 +02:00
Guillaume Ayoub
449ca2db07
Remove useless space
2012-05-08 03:40:27 +02:00
Simon Sapin
0e66f6a72f
Merge branch 'shrinktofit'
2012-04-10 11:11:57 +02:00
Simon Sapin
79675f58b0
Implement min-height and max-height on blocks
2012-04-06 16:42:06 +02:00
Simon Sapin
b113b29fd7
Update shrink-to-fit for tinycss.
2012-04-05 13:16:17 +02:00
Guillaume Ayoub
58fb02dcbb
Don't collapse spaces across atomic inline blocks
2012-04-03 18:58:55 +02:00
Simon Sapin
dcacf9eed0
Switch the licence to BSD and rewrite module docstrings/headers
2012-03-21 23:26:58 +01:00
Simon Sapin
26de362b99
Add proper attribution in AUTHORS
2012-03-21 18:40:38 +01:00
Simon Sapin
9875f76995
Hello 2012
2012-03-21 18:40:38 +01:00
Simon Sapin
b8fa396d53
Margin collapsing: through "empty" elements.
2012-02-28 14:54:20 +01:00
Simon Sapin
28a53ef307
More collapsing margins again.
2012-02-28 14:54:20 +01:00
Simon Sapin
e66e1025b0
More cases for margin collapsing
2012-02-23 19:31:15 +01:00
Simon Sapin
7ad1083e88
Rename weasyprint.logging to avoid conflicts the stdlib module.
2012-02-23 19:31:15 +01:00
Simon Sapin
f0e79cf99a
Cleanups
2012-02-23 19:31:15 +01:00
Simon Sapin
ff135aa285
Python 3 compat. All tests pass with the same code base!
2012-02-17 22:48:20 +01:00
Simon Sapin
6baad64044
Disable an assert that fails because of floating point errors.
2012-02-16 15:27:49 +01:00
Simon Sapin
cf52aa3aaf
Move the whole 'weasy' package to 'weasyprint'
2012-02-14 12:49:33 +01:00