1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-03 23:48:07 +03:00
WeasyPrint/tests
aschmitz ad6e0d729f perf: improve column handling speed, fix infinite loops
The primary change here is that the column calculation algorithm now
attempts to render columns as if they were the full remaining height on
the page, rather than to render the entire content regardless of how
long the page is.

The worst-case behavior is effectively the same as that of the previous
algorithm (as at least one additional pass would be required to
determine how high balanced columns should be, but this applies in both
cases), but if content would not fit on the page, this can bail and set
the page immediately, rather than continuing significantly more
calculations.

As an associated benefit, this closes #1020, as we now handle multiple
column breaks (which would force a page break) correctly. A test for
this behavior is included.
2022-03-17 00:32:02 -05:00
..
draw fix: support position: absolute in footnotes 2022-03-03 22:10:21 -06:00
layout perf: improve column handling speed, fix infinite loops 2022-03-17 00:32:02 -05:00
resources Use utf-8 instead of utf8 2022-02-08 22:41:03 +01:00
__init__.py Packaging! 2020-12-06 20:19:59 +01:00
conftest.py Use the default value of decode/encode when possible 2022-02-14 10:55:47 +01:00
test_acid2.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_api.py Use the default value of decode/encode when possible 2022-02-14 10:55:47 +01:00
test_boxes.py Process whitespaces as soon as box children are set 2021-10-13 09:48:39 +02:00
test_counters.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_css_descriptors.py Packaging! 2020-12-06 20:19:59 +01:00
test_css_validation.py Merge branch '54.x' 2022-03-02 21:07:31 +01:00
test_css.py Rename layout files to follow "display" values 2021-09-13 15:37:29 +02:00
test_float.py Remove useless dels 2022-02-14 08:15:55 +01:00
test_fonts.py Correct comment on woff font test 2021-11-28 20:41:27 +00:00
test_pdf.py Use the default value of decode/encode when possible 2022-02-14 10:55:47 +01:00
test_presentational_hints.py Transform text-align into shorthand 2021-08-24 13:27:59 +02:00
test_stacking.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_target.py Packaging! 2020-12-06 20:19:59 +01:00
test_text.py Use the default value of decode/encode when possible 2022-02-14 10:55:47 +01:00
test_unicode.py Use the default value of decode/encode when possible 2022-02-14 10:55:47 +01:00
test_variables.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
testing_utils.py fix: don't output footnotes before their call sites 2022-02-10 01:02:21 -06:00