Simon Sapin
7573742637
Merge branch 'master' into float
...
Conflicts:
weasyprint/layout/absolute.py
weasyprint/layout/blocks.py
weasyprint/layout/inlines.py
2012-06-19 18:12:19 +02:00
Guillaume Ayoub
36a6b6b6f3
Pass the fixed_boxes argument instead of using current_page
...
Cherry-picked from 043d71dc29
Conflicts:
weasyprint/layout/absolute.py
weasyprint/layout/blocks.py
weasyprint/layout/float.py
weasyprint/layout/inlines.py
2012-06-19 18:00:50 +02:00
Guillaume Ayoub
f9e7c40ca2
Fix the drawing order of fixed boxes
...
Cherry-picked from 568e0aeb70
Conflicts:
weasyprint/layout/blocks.py
weasyprint/layout/inlines.py
2012-06-19 17:42:15 +02:00
Guillaume Ayoub
d71ad36580
Merge branch 'master' into float
2012-06-19 14:53:40 +02:00
Guillaume Ayoub
4fe56316f6
Finally fix margin collapsing for blocks with clearance
2012-06-19 14:52:30 +02:00
Guillaume Ayoub
f441f8c810
Increase position_y after clear blocks
2012-06-19 00:00:28 +02:00
Guillaume Ayoub
9cf9e53d0b
Fix a little bug with clearance
2012-06-18 19:34:35 +02:00
Guillaume Ayoub
ef76204e99
Fix clearance and margin collapsing
2012-06-18 19:31:24 +02:00
Guillaume Ayoub
b3e3581f48
Remove useless import
2012-06-18 18:04:20 +02:00
Guillaume Ayoub
8a94ff2f9b
Strip spaces at the beginning of text fragments to get real line widths
2012-06-18 10:44:54 +02:00
Guillaume Ayoub
d62ba4936a
Don't collapse through boxes with clearance
2012-06-18 10:06:18 +02:00
Simon Sapin
4c8b3f7030
Updated the list of properties that apply to table wrappers.
...
Removed line-height: it applies implicitly as it is inherited
Added counter-increment, counter-reset, opacity
See http://lists.w3.org/Archives/Public/www-style/2012Jun/0396.html
2012-06-16 13:09:09 +02:00
Guillaume Ayoub
e4f9ff5331
Don't collapse through clear boxes
2012-06-15 18:49:40 +02:00
Simon Sapin
f7d765e0c1
Bug fixes and tests on floats…
2012-06-15 17:59:15 +02:00
Simon Sapin
0485e8e777
Add some tests for float
2012-06-15 15:22:17 +02:00
Simon Sapin
937710bf9c
Account for line height when avoiding collisions with floats.
2012-06-15 15:14:43 +02:00
Simon Sapin
8b38b39fa2
Add a favicon for the Browser. (Clients keep requesting it…)
2012-06-15 11:58:13 +02:00
Simon Sapin
b276dbd1d7
Default to HTTP in the Browser rather than relative filenames.
2012-06-15 11:50:53 +02:00
Simon Sapin
a83ff7b0ee
Fix #772 : Use redirected URLs as base URLs
2012-06-14 22:08:34 +02:00
Simon Sapin
8497a7fc90
Fix the tests on PDF links
2012-06-14 22:06:30 +02:00
Simon Sapin
0b2157a861
Change the default page margin to 75px
...
This is within 1% of the previous 2cm, but an integer number
of pixels works better for PNG output (eg. in the Browser)
2012-06-14 21:12:21 +02:00
Simon Sapin
34ae5ec116
Remove redundant links on text boxes; Browser polish
2012-06-14 21:09:59 +02:00
Simon Sapin
b98820df5b
Switch from margin area to border area for the link "hit box"
2012-06-14 20:11:12 +02:00
Simon Sapin
b1965a1edd
Make all decendants of a link clickable too.
...
Consider an inline <a> containing some text and an image higher than
line-height. The text should be clickable on a zone as high as
line-height but the whole image shoud be clickable too.
2012-06-14 19:43:58 +02:00
Simon Sapin
28e604e346
Nicer-looking address bar for WeasyPrint Browser
2012-06-14 18:07:51 +02:00
Simon Sapin
6e6424e3a1
Add weasyprint.browser.
...
Start it with python -m weasyprint.browser
Requires Flask (and thus Python 2)
2012-06-14 15:43:35 +02:00
Simon Sapin
d2aeda4372
More properties should apply to table wrappers.
...
Thanks David Baron for sharing what Gecko does.
2012-06-11 12:34:43 +02:00
Simon Sapin
2c445b75b9
'text-align: top' is implemented, remove a hack for Acid 2.
2012-06-08 18:50:20 +02:00
Simon Sapin
2c0abe1483
Merge branch 'master' into float
2012-06-08 18:49:27 +02:00
Simon Sapin
26b4f57292
Implement vertical-align: top/bottom.
2012-06-08 18:49:10 +02:00
Simon Sapin
09895757ca
Now passing Acid 2!
2012-06-08 17:17:19 +02:00
Simon Sapin
fd6c5451e0
Merge branch 'master' into float
2012-06-08 17:16:31 +02:00
Guillaume Ayoub
85df2ebe47
Fix the struts and heights of line/inline boxes. (For real this time. Maybe.)
2012-06-08 17:13:45 +02:00
Guillaume Ayoub
9b3e66ccbe
Ignore tests with dom or interact flag
2012-06-06 15:01:42 +02:00
Simon Sapin
d0a5a0b8f1
Fix borders on inline boxes split by a block inside.
2012-06-06 13:27:50 +02:00
Guillaume Ayoub
6cbdab0799
Fix various tests, remove monkeypatch validation
2012-06-06 12:52:02 +02:00
Simon Sapin
706113c24b
Revert "Make the strut have an effect on line boxes"
...
This reverts commit d88ecbb6ba
.
2012-06-06 12:05:59 +02:00
Guillaume Ayoub
043d71dc29
Pass the fixed_boxes argument instead of using current_page
2012-06-06 12:04:09 +02:00
Simon Sapin
61c335766a
Next is 0.10
2012-06-06 11:21:06 +02:00
Guillaume Ayoub
568e0aeb70
Fix the drawing order of fixed boxes
2012-06-06 09:49:56 +02:00
Guillaume Ayoub
d88ecbb6ba
Make the strut have an effect on line boxes
2012-06-05 17:56:58 +02:00
Guillaume Ayoub
39e503858d
Fix margin collapsing with clearance
2012-06-05 17:14:33 +02:00
Simon Sapin
d4409e8f46
Add the Acid2 test (marked as expected failure).
2012-06-05 13:52:57 +02:00
Simon Sapin
182f1883c9
Disable anti-aliasing on background-color
...
Prefer crisp edges for the rectangle. I think this only
affects the PNG output, not PDF.
2012-06-05 11:27:51 +02:00
Simon Sapin
1624335b40
Remove useless "computed values" functions.
2012-06-05 10:33:19 +02:00
Guillaume Ayoub
9e30396036
Merge branch 'master' into float
2012-06-04 19:34:01 +02:00
Guillaume Ayoub
505ee8de26
Handle the mix/max-widths/heights for absolute and float
2012-06-04 19:22:18 +02:00
Simon Sapin
4ec6757077
Tag v0.9
2012-06-04 18:57:50 +02:00
Simon Sapin
da669da8c9
Changelog for 0.9
2012-06-04 18:57:44 +02:00
Simon Sapin
cad7d5604c
Fix tests for the "strut" change on containing blocks.
2012-06-04 18:51:50 +02:00