1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 16:37:47 +03:00
Commit Graph

2651 Commits

Author SHA1 Message Date
Guillaume Ayoub
a455dfbfcb Fix tests with Python 3.5 2018-03-20 00:05:11 +01:00
Guillaume Ayoub
c761f5338c Split drawing tests 2018-03-19 23:35:56 +01:00
Guillaume Ayoub
8f2f6b30c2 Clean latest tests 2018-03-19 22:35:15 +01:00
Guillaume Ayoub
6a35d779a1 Clean more and more tests 2018-03-18 22:25:32 +01:00
Guillaume Ayoub
cffa1f35d4 Fix docstrings and filenames in tests 2018-03-15 01:16:06 +01:00
Guillaume Ayoub
7e64675003 Clean table layout tests 2018-03-15 01:14:45 +01:00
Guillaume Ayoub
e10076b5e8 Clean stacking tests 2018-03-15 00:40:06 +01:00
Guillaume Ayoub
d1e78fc6cb Clean presentational hints tests 2018-03-15 00:32:24 +01:00
Guillaume Ayoub
03b47f6a75 Clean PDF tests 2018-03-15 00:26:58 +01:00
Guillaume Ayoub
8eb5183bea Clean test_fonts 2018-03-14 02:13:52 +01:00
Guillaume Ayoub
2e7a8b3f92 Clean test_css 2018-03-14 02:06:41 +01:00
Guillaume Ayoub
32f332da5e Clean test_column.py 2018-03-14 01:45:31 +01:00
Guillaume Ayoub
a6cab7a15c Move test_columns.py 2018-03-14 01:39:33 +01:00
Guillaume Ayoub
595ba6a74c Split layout tests 2018-03-14 01:32:01 +01:00
Guillaume Ayoub
d5bda266c6 Inline save_pixels_to_png 2018-03-12 19:09:51 +01:00
Guillaume Ayoub
d0f0490890 Remove dead and old code from tests 2018-03-12 19:02:17 +01:00
Guillaume Ayoub
1861eb897b Implement "requires" decorator using pytest.mark.skipif 2018-03-12 18:34:47 +01:00
Guillaume Ayoub
c01ebc22b5 Ask doc readers to use "python setup.py test" instead of "pytest" 2018-03-12 18:10:21 +01:00
Guillaume Ayoub
9ea0b7dc41 Use pytest.approx instead of custom almost_equal 2018-03-12 18:07:31 +01:00
Guillaume Ayoub
6e70f60c92 Use tmpdir fixture instead of custom code 2018-03-12 01:01:20 +01:00
Guillaume Ayoub
7ec1155f47 Change coverage configuration 2018-03-12 01:01:12 +01:00
Guillaume Ayoub
b292a72607 Put navigator and renderer in a separate module 2018-03-11 23:46:33 +01:00
Guillaume Ayoub
fdce58dcd0 Use macOS instead of OS X in documentation 2018-03-11 22:48:37 +01:00
Guillaume Ayoub
3b52fb058e Don't optimize resume_at when splitting lines with trailing spaces
Fix #586.

For some reason I don't really understand, stripping trailing spaces that would
make the line too long can't be optimized when the space is at the end of the
block. Returning None instead of the index of the last letter should be
possible, but it breaks the rendering when the first letter of the next line
box starts with a character that doesn't allow line breaks after spaces (many
punctuation characters for example) and that doesn't allow line wrap.

This change shouldn't be harmful, as the removed code lines were just cleaning
the resume_at value without changing the logic of line breaking. I suppose that
there's a bug somewhere else.
2018-03-10 00:26:11 +01:00
Guillaume Ayoub
5807f1827e Merge branch 'timeout'
Fix #306.
2018-03-07 21:52:02 +01:00
Guillaume Ayoub
806d3d5a83
Merge pull request #579 from Kozea/flexbox
Initial implementation of flexbox
2018-03-07 21:45:44 +01:00
Guillaume Ayoub
e65e863e8e Fix 'auto' values for min_width and max_width 2018-03-06 01:25:47 +01:00
Guillaume Ayoub
736fd1478e Add a timeout option to default_url_fetcher 2018-03-06 01:13:06 +01:00
Guillaume Ayoub
99f2c05f82 Handle mix-width and min-height: auto 2018-03-06 01:00:45 +01:00
Guillaume Ayoub
216fe2b6c6 Merge branch 'master' into flexbox 2018-03-05 01:49:11 +01:00
Guillaume Ayoub
f34f55abc7 Fix MacOS installation of Python for Travis 2018-03-05 01:47:49 +01:00
Guillaume Ayoub
63db508efb Ignore overflow_wrap: break-word when calculating min-content width
See https://drafts.csswg.org/css-text-3/#overflow-wrap-property

Fix #582.
2018-03-05 01:23:32 +01:00
Guillaume Ayoub
957ffe7a4a Remove table border from available width when borders collapse
Related to #582.
2018-03-05 01:02:29 +01:00
Guillaume Ayoub
05b2a59e15 Propagate overflow to the table wrapper
Without that, tables with "overflow: auto" don't draw their borders.

Related to #582.
2018-03-04 22:47:39 +01:00
Guillaume Ayoub
f98e0ec7ce Remove useless condition 2018-03-03 23:31:40 +01:00
Guillaume Ayoub
b3864e53bb Fix flex step 6 comments 2018-03-03 22:52:07 +01:00
Guillaume Ayoub
7a64deb7e4 Handle min/max height for single-line containers 2018-03-03 19:06:50 +01:00
Guillaume Ayoub
2540f27c21 Allow growing flex items when scaled_flex_shrink_factors_sum is 0 2018-03-03 17:46:40 +01:00
Guillaume Ayoub
687e2d2074 Fix the flex grow factor 2018-03-03 17:42:39 +01:00
Guillaume Ayoub
f3cf583b23 Use box.width and box.height instead of style for flex boxes 2018-03-02 01:30:09 +01:00
Guillaume Ayoub
323b174755 Create formatting contexts for flex layout 2018-03-02 00:27:53 +01:00
Guillaume Ayoub
0b454d0718 Fix flex-flow validation 2018-03-01 03:03:45 +01:00
Guillaume Ayoub
7e7a0690ed Fix extra available size used for cross margins 2018-03-01 02:54:44 +01:00
Guillaume Ayoub
d695044a84 Fix inline box breaking function
Fix #580.
2018-02-27 01:16:27 +01:00
Guillaume Ayoub
3ced7ac420 Transfrom all flex items parent boxes into block boxes 2018-02-25 23:41:15 +01:00
Guillaume Ayoub
19546c8778 Handle inline-flex and its baseline 2018-02-25 18:05:04 +01:00
Guillaume Ayoub
b71bfca8f3 Handle column layout in block_box_layout
This change gives flex_layout a chance to use block_box_layout, that can handle
more cases (including columns) than block_container_layout witout resetting
size set by flex layout.
2018-02-25 16:14:13 +01:00
Guillaume Ayoub
df1fa7b0c7 Clean skip_stack when it's been used 2018-02-25 02:31:16 +01:00
Guillaume Ayoub
595001bd10 Fix some comments 2018-02-25 01:58:15 +01:00
Guillaume Ayoub
a464a82e61 Use outer size for flex_basis 2018-02-25 01:29:23 +01:00