1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00
WeasyPrint/tests
Guillaume Ayoub 6a9dac4861 Replace max_position_y by bottom_space
As the bottom of the page is now dynamic (because it changes with footnotes),
passing the max_position_y is difficult: it would require the value to be
passed to layout functions, and returned (possibly updated) by these functions.

The new solution is to store the page bottom in the context, and to update it
when a footnote is included. The new max position y is calculated when needed,
using the updated position of the page bottom.

To handle extra bottom spaces (bottom padding/border/margin of a parent box for
example), a bottom_space parameter is given when needed. This value can be set
to -inf when we don’t want to take care of the page bottom (that’s equivalent
to max_position_y=inf).
2021-11-27 17:01:16 +01:00
..
draw Merge remote-tracking branch 'origin/53.x' 2021-10-29 16:04:02 +02:00
layout Replace max_position_y by bottom_space 2021-11-27 17:01:16 +01:00
resources Test CLI optimizations 2021-08-04 16:54:09 +02:00
__init__.py Packaging! 2020-12-06 20:19:59 +01:00
conftest.py Add an option to return split images when testing PNGs 2021-11-14 19:41:04 +01:00
test_acid2.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_api.py Copy boxes when using them in stacking contexts 2021-11-14 19:41:10 +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 Fix and test line-clamp 2021-08-06 19:05:03 +02:00
test_css.py Rename layout files to follow "display" values 2021-09-13 15:37:29 +02:00
test_float.py Remove float width from inline box available width 2021-10-29 16:06:13 +02:00
test_fonts.py Only enable letter- and word-spacing when needed 2021-10-13 22:11:58 +02:00
test_pdf.py Fix images embedded from multiple pages 2021-11-05 21:59:09 +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 Transform text-align into shorthand 2021-08-24 13:27:59 +02:00
test_unicode.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_variables.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
testing_utils.py Display footnotes at the bottom of the page 2021-11-23 13:37:53 +01:00