Simon Sapin
9d4e5b9d6f
Simplify table wrapper layout.
2012-04-12 17:20:57 +02:00
Simon Sapin
78b86f400e
Only use the fixed table layout with a non-auto width.
...
As specified, fall back to the automatic layout when the
computed width is 'auto'.
This will enable some code simplifications, and prepare
for inline tables.
2012-04-12 17:20:57 +02:00
Guillaume Ayoub
3a86c1e679
Add the functions for preferred sizes of tables
2012-04-10 14:38:18 +02:00
Simon Sapin
0e66f6a72f
Merge branch 'shrinktofit'
2012-04-10 11:11:57 +02:00
Guillaume Ayoub
0d59b2600f
Clean and fix a lot of things in tables auto layout
2012-04-07 14:25:30 +02:00
Simon Sapin
7ac982a01c
Implement {min,max}-{width,height} on images.
2012-04-06 19:44:09 +02:00
Simon Sapin
79675f58b0
Implement min-height and max-height on blocks
2012-04-06 16:42:06 +02:00
Simon Sapin
cde28023d6
Implement min-width and max-width on blocks.
2012-04-06 16:19:16 +02:00
Simon Sapin
61bf188290
Merge branch 'master' into shrinktofit
...
Conflicts:
weasyprint/layout/blocks.py
weasyprint/layout/inlines.py
2012-04-05 12:38:42 +02:00
Simon Sapin
88c027117c
Do not keep tokens for percentages after validation.
...
Make (value, unit) namedtuples instead.
Pixel values that could be percentages are not plain numbers anymore.
2012-04-03 16:12:25 +02:00
Simon Sapin
46b1d225c7
Tests n’ fixes. Lots of them.
2012-04-03 11:34:29 +02:00
Guillaume Ayoub
42e25e1e3c
Add a basic shrink to fit for tables
2012-03-23 19:31:54 +01: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
e23c38bfd2
Merge branch 'master' into table-breaks
...
Conflicts:
weasyprint/css/validation.py
2012-03-21 17:06:47 +01:00
Simon Sapin
f814dc0243
Add page-break-inside: avoid
2012-03-21 11:36:24 +01:00
Priit Laes
3e2eb91341
table-break: WIP page-breaks inside tables
2012-03-16 21:09:24 +02:00
Simon Sapin
1d6c94828e
Add support for orphans and widows.
2012-03-14 19:33:24 +01:00
Simon Sapin
3632842b16
Better forced page breaks
...
If eg. page-break-before is 'always' on a first child, the break is
between the clostest ancestor that has a previous sibling and
that sibling.
See the changed test for an example.
2012-03-14 16:26:20 +01:00
Simon Sapin
476732b81c
Support images in <embed> or <object>
2012-02-29 17:38:30 +01:00
Simon Sapin
e6cee2f2ab
Put block-level images on the next page when they would overflow.
2012-02-29 12:23:25 +01:00
Simon Sapin
953493733f
Margin collapsing: not on the root element.
2012-02-28 14:54:20 +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
650b23ada8
Basic margin collapsing
...
Only between two siblings for now.
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
cf52aa3aaf
Move the whole 'weasy' package to 'weasyprint'
2012-02-14 12:49:33 +01:00