Lucie Anglade
fcea5f02df
Test floats split
2021-12-04 16:56:39 +01:00
Lucie Anglade
2c77f5f2f9
Fix indent
2021-12-04 16:53:50 +01:00
Lucie Anglade
fb12d2ca83
Test floats split
2021-12-04 16:33:54 +01:00
Lucie Anglade
dfc3d0a7d9
Remove useless import
2021-12-04 15:29:45 +01:00
Lucie Anglade
c5f03c2c89
More footnotes tests
2021-11-30 11:24:25 +01:00
Lucie Anglade
d42b0fabfe
Some footnotes tests
2021-11-29 16:30:10 +01:00
Lucie Anglade
e6da2c93f9
Merge branch 'footnotes' of github.com:Kozea/WeasyPrint into footnotes
2021-11-29 15:41:46 +01:00
Guillaume Ayoub
5ce71e48fe
Merge branch 'master' of github.com:Kozea/WeasyPrint
2021-11-29 15:08:51 +01:00
Guillaume Ayoub
80b88db154
Don’t crash when the font size is really small
...
Fix #1499 .
2021-11-29 15:08:18 +01:00
Guillaume Ayoub
b5d3475eee
Fix current position tested when footnotes are added
2021-11-29 12:37:03 +01:00
Guillaume Ayoub
677b083d78
Merge pull request #1505 from ColinKinloch/woff_cache
...
Reuse decompressed woff files based on hash
2021-11-29 12:24:43 +01:00
Lucie Anglade
8f60b81b56
Add style for footnotes testing
2021-11-29 12:18:53 +01:00
Lucie Anglade
f5e520eae8
Don’t use AnonymousStyle, because it’s not computed style
2021-11-29 12:18:30 +01:00
Colin Kinloch
82f98b16ab
Correct comment on woff font test
2021-11-28 20:41:27 +00:00
Colin Kinloch
a273b08a59
Fix woff cache read and add woff cache test
2021-11-28 20:30:55 +00:00
Guillaume Ayoub
5ebb9db93f
Merge branch 'parallel-out-of-flow'
2021-11-28 20:06:05 +01:00
Guillaume Ayoub
424f080311
Don’t draw empty glyphs at all
...
Fix #1508 .
2021-11-28 19:47:37 +01:00
Guillaume Ayoub
36b74524bf
Insert footnotes after the layout of each line
2021-11-27 17:40:09 +01:00
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
Guillaume Ayoub
a3b7f7fa71
Display footnotes on the next page when they don’t fit
2021-11-27 14:42:09 +01:00
Guillaume Ayoub
b633bef1a7
Fix footnote style test condition
2021-11-26 11:14:30 +01:00
Colin Kinloch
4549913644
Add test to make sure woff fonts load and fix typo
2021-11-24 20:10:28 +00:00
Guillaume Ayoub
c90886c58a
Don’t crash when footnote area has no style
2021-11-23 21:31:02 +01:00
Colin Kinloch
63a7513bed
Correct line length and missing import
2021-11-23 17:26:34 +00:00
Colin Kinloch
6d69d92bbd
Reuse decompressed woff files based on hash
2021-11-23 16:44:51 +00:00
Guillaume Ayoub
2da0a6c9cf
Update vertical max position when displaying footnotes
2021-11-23 16:18:52 +01:00
Guillaume Ayoub
9f61ce969b
Put markers in footnotes
2021-11-23 14:02:26 +01:00
Guillaume Ayoub
fe5fa64f57
Display footnotes at the bottom of the page
2021-11-23 13:37:53 +01:00
Guillaume Ayoub
1c3fd972bd
Store footnotes in the layout context
2021-11-19 11:39:47 +01:00
Guillaume Ayoub
509ab9379f
Merge branch 'master' of github.com:Kozea/WeasyPrint
2021-11-19 10:59:02 +01:00
Guillaume Ayoub
f6c29abddc
Set Document’s optimize_size property as private
2021-11-19 10:57:59 +01:00
Lucie Anglade
e7cdd808cc
Fix #1491 .
...
Put InlineBoxes directly in BlockBox instead of replacing them.
2021-11-18 18:44:33 +01:00
Guillaume Ayoub
b36671b684
Allow CSS to set properties for footnote-call pseudo-elements
2021-11-15 16:22:29 +01:00
Guillaume Ayoub
da1cd5e74d
Create and update footnote counter
2021-11-15 15:43:51 +01:00
Guillaume Ayoub
20fdc45ccc
Replace footnotes by footnote-calls
2021-11-15 15:00:59 +01:00
Guillaume Ayoub
75e343591d
Remove footnotes from the flow
2021-11-15 11:54:26 +01:00
Guillaume Ayoub
88e589bcdc
Allow the "footnote" value for "float"
2021-11-15 11:21:09 +01:00
Guillaume Ayoub
aafb119e29
Copy boxes when using them in stacking contexts
...
If we don’t copy the boxes, rendering pages twice will fail because creating
stacking contexts can change the boxes’ children.
Fix #1473 .
2021-11-14 19:41:10 +01:00
Guillaume Ayoub
58c9dbc231
Add an option to return split images when testing PNGs
2021-11-14 19:41:04 +01:00
Guillaume Ayoub
837d64111b
Use the BATCH mode of ghostscript
...
Without this mode, we get the "GS>" prompt at the end of the standard output.
2021-11-14 19:27:34 +01:00
Guillaume Ayoub
046f27bf98
Split blocks in blocks when possible
...
Related to #1476 .
2021-11-14 13:25:04 +01:00
Guillaume Ayoub
dd783efaa9
Merge branch '53.x'
2021-11-14 10:27:11 +01:00
Guillaume Ayoub
8441685ee4
Version 53.4
2021-11-14 10:21:44 +01:00
Guillaume Ayoub
7e7b1d7e91
Include the font hash to create the font name
...
Using the font hash avoids collisions when we have the same font description
but not the same hash, for example when the same font is used in multiple HTML
instances.
It could be possible to only store the font once, this solution is not optimal
but this more reliable.
Fix #1489 .
2021-11-13 19:17:24 +01:00
Guillaume Ayoub
43d0e5442d
Include the font hash to create the font name
...
Using the font hash avoids collisions when we have the same font description
but not the same hash, for example when the same font is used in multiple HTML
instances.
It could be possible to only store the font once, this solution is not optimal
but this more reliable.
Fix #1489 .
2021-11-13 19:05:31 +01:00
Guillaume Ayoub
3aa0683e80
Update documentation about the required version of html5lib
2021-11-13 17:52:29 +01:00
Guillaume Ayoub
d6736bf0f4
Merge pull request #1492 from pablodgonzalez/patch-1
...
Bump html5lib version
2021-11-13 17:51:07 +01:00
Guillaume Ayoub
8a8bfa31fe
Don’t continue to render tables when a row is split
2021-11-13 16:45:31 +01:00
Guillaume Ayoub
183d160663
Remove top and bottom borders from tables when they’re split
2021-11-13 16:44:39 +01:00
Pablo González
07dcb058bd
Bump html5lib version
2021-11-10 17:43:00 -03:00