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
80af286655
Merge branch 'float' into 'master'
2012-06-29 11:40:00 +02:00
Simon Sapin
edfbd90566
W3C test suite runner: render in an iframe
...
In case rendering fails with an exception, the Werkzeug
debugger is in the iframe. The browser’s rendering and
the HTML source are still visible.
2012-06-29 11:38:57 +02:00
Simon Sapin
cf822b981f
Use the Acid2 version from webstandards.org
...
It uses http://www.webstandards.org/404/ instead of
http://www.damowmow.com/404/ and thus does not have
network problems.
Also, using the new get_png_pages() API we can get
each page separately. No custom stylesheet is needed
anymore.
2012-06-28 17:41:42 +02:00
Simon Sapin
45a09df4a8
Set the network timeout to 1 second for Acid2
...
Acid2 uses http://www.damowmow.com/404/ which apparently has
a broken IPv6 setup.
2012-06-28 14:01:03 +02:00
Simon Sapin
f808cacd09
Fix waiting_floats with spans
2012-06-28 14:00:27 +02:00
Simon Sapin
f0b04a8e37
Merge branch 'master' into float
2012-06-28 13:30:23 +02:00
Simon Sapin
f65619f452
Fix whitespace collapsing across not-in-normal-flow boxes.
2012-06-28 13:29:12 +02:00
Simon Sapin
5e61048014
Remove import of a removed module.
2012-06-28 11:59:36 +02:00
Guillaume Ayoub
85753abc7f
Re-add a test that was failing
2012-06-28 09:09:15 +02:00
Guillaume Ayoub
228f1e3d77
Fix most of the tests (but not Acid2)
2012-06-28 00:51:24 +02:00
Guillaume Ayoub
d3eb130fc0
Fix *again* the split_inline_box calls in the tests
2012-06-26 00:21:50 +02:00
Guillaume Ayoub
19d0a6aff5
Merge branch 'master' into float
2012-06-25 23:55:54 +02:00
Simon Sapin
6eee86dadf
Fix Navigator tests on Py2.6
2012-06-25 16:09:40 +02:00
Guillaume Ayoub
f15cb85d1d
Merge branch 'master' into float
2012-06-25 12:48:11 +02:00
Simon Sapin
c2375d2f5c
Do not require JavaScript in Navigator
...
And other niceties.
2012-06-25 10:57:38 +02:00
Guillaume Ayoub
b67bebfb92
Fix the position of line children next to float boxes
2012-06-24 00:03:45 +02:00
Guillaume Ayoub
a3cc6c62a8
Merge branch 'master' into float
2012-06-23 11:51:05 +02:00
Simon Sapin
78461b81f1
Test the Navigator
2012-06-23 04:58:14 +02:00
Guillaume Ayoub
989ae739ef
Merge branch 'master' into float
...
Comment failing tests too :(
Conflicts:
weasyprint/document.py
weasyprint/draw.py
2012-06-23 02:00:09 +02:00
Simon Sapin
4f801d61b4
Bug fix: list + tuple in find_earlier_break()
2012-06-22 14:34:36 +02:00
Guillaume Ayoub
ab5ecd8346
Fix some tests
2012-06-22 11:40:15 +02:00
Simon Sapin
541214ee71
Add a resolution
parameter for PNG output in the public API.
...
The resolution is counted in PNG pixels per CSS inch.
Note however that CSS pixels are always 1/96 CSS inch.
With the default resolution of 96, CSS pixels match PNG pixels.
2012-06-22 08:49:48 +02:00
Guillaume Ayoub
cd1e5b3e05
Merge branch 'master' into float
...
Conflicts:
weasyprint/layout/preferred.py
weasyprint/text.py
2012-06-22 01:29:26 +02:00
Simon Sapin
9fde81d006
Fix a corner case in page-break-*: avoid
2012-06-21 19:05:54 +02:00
Simon Sapin
040eb765df
Remove backends in favor of methods on Document
...
This much genericity was not that useful.
2012-06-21 17:22:01 +02:00
Simon Sapin
97f3eee889
Refactor text handling
...
* Kill the TextFragment class. Use a set of functions instead.
* Pass around an `enable_hinting` boolean rather than a dummy surface
2012-06-21 17:22:01 +02:00
Guillaume Ayoub
07c1596746
Merge branch 'master' into float
2012-06-21 16:12:08 +02:00
Guillaume Ayoub
2ba67841ba
Use a base URL for w3 server (fixes images)
2012-06-21 16:09:39 +02:00
Guillaume Ayoub
c163f8e8eb
Merge remote-tracking branch 'origin/master' into float
...
Conflicts:
weasyprint/document.py
weasyprint/tests/w3_test_suite/web.py
2012-06-21 15:28:22 +02:00
Simon Sapin
a10e691d4d
Nicer test runner for the W3C suite
...
* Show each page separately with a box-shadow
* Add line numbers to the source view
2012-06-21 12:04:43 +02:00
Guillaume Ayoub
7cc8be2f90
Merge branch 'master' into float
...
Conflicts:
weasyprint/layout/blocks.py
2012-06-20 13:47:28 +02:00
Simon Sapin
d4399ee269
Add support for page-break-{before,after}: avoid
2012-06-20 12:53:22 +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
d71ad36580
Merge branch 'master' into float
2012-06-19 14:53: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
8b38b39fa2
Add a favicon for the Browser. (Clients keep requesting it…)
2012-06-15 11:58:13 +02:00
Simon Sapin
8497a7fc90
Fix the tests on PDF links
2012-06-14 22:06:30 +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