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
Guillaume Ayoub
82db8a421c
Fix the shirk to fit agorithm
2012-03-23 17:33:59 +01:00
Guillaume Ayoub
e8920cea3f
Don't shrink inline-blocks with multiple lines
2012-03-23 13:32:44 +01:00
Guillaume Ayoub
67e6cc5063
Include the margin/border/padding when translating inline-block boxes
2012-03-23 01:16:08 +01:00
Guillaume Ayoub
0c891965d2
Resolve margin_width when possible for preferred values
...
This fix sets the margin/border/padding values for inline-block children
2012-03-23 01:04:38 +01:00
Guillaume Ayoub
48c7005019
Fix the x and y position of the children of the inline-block boxes
2012-03-23 00:45:38 +01:00
Guillaume Ayoub
b5d1c3f7de
Handle fixed sizes in inline-block children
2012-03-22 23:52:32 +01:00
Guillaume Ayoub
65a8d64490
Fix the maximum preferred width when a maximum width is set
2012-03-22 23:41:24 +01:00
Guillaume Ayoub
abd386796f
Naive implementation of inline-block evelements
2012-03-22 23:26:09 +01:00
Guillaume Ayoub
2c0c83693f
Add the function definitions for shrink to fit
2012-03-22 19:32:59 +01:00
Simon Sapin
ccdfbe1d97
Boilerplate for inline-block support
2012-03-22 18:36:56 +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
7172323b8f
Add page-break-inside: avoid on table row groups
2012-03-21 18:36:03 +01:00
Simon Sapin
fc4d091f82
Add page-break-inside: avoid for tables
2012-03-21 18:09:03 +01:00
Simon Sapin
f2db08b310
Fix and test page breaks inside tables
...
rowspan > 1 is not handled correctly, but having *some* page breaks
is more valuable
2012-03-21 18:01:24 +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
f4a143a642
table-break: Fix infinite loop in case table row > page height
2012-03-17 13:43:19 +02: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
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
0ef3b35e90
Actual python 2.6 compatibility
2012-02-21 14:13:34 +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