1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
Commit Graph

2005 Commits

Author SHA1 Message Date
Guillaume Ayoub
ca0fd0239f Don't edit style when splitting boxes
Fix #943.
2019-09-23 12:09:07 +02:00
Guillaume Ayoub
c33ca0893d Remove useless empty line 2019-09-20 17:24:21 +02:00
Guillaume Ayoub
1d144683d8 Use else instead of extra comparison in for loop 2019-09-20 11:15:48 +02:00
Guillaume Ayoub
7a4d6f821d Support larger and smaller values for font-size 2019-09-20 11:12:12 +02:00
Guillaume Ayoub
a0ccc8d2e6 Version 50 2019-09-19 13:34:22 +02:00
Guillaume Ayoub
3af0d73be2 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-09-18 15:08:44 +02:00
Guillaume Ayoub
8abc39d209 Don't display absolutes when their parents have no other children
If a parent box can only display absolute boxes at the bottom of the page, but
has other children that have to be drawn on the next page, keep the absolute
boxes for the next page too. It's at least very useful for markers.

Fix #945.
2019-09-18 15:03:43 +02:00
Guillaume Ayoub
fbf3467240 Fix position of marker box
The marker box is generated by the ::marker pseudo-element of a list item as
the list item’s first child […].

The old behavior was done because of the fuzzy "[With list-style-position:
outside], If the list item is a block container: the marker box is outside the
principal block box […]". Outside here probably means that the box is drawn
outside, not that it's not a child of the list item box.

Related to #945.
2019-09-18 14:57:25 +02:00
grewn0uille
8e267c90df Make blocks with 'overflow' different from 'visible' grow to include floating children.
Fix #661.
2019-09-16 16:33:13 +02:00
Guillaume Ayoub
5f7a104c62 Ignore margins on flex containers
Fix #831.
2019-09-13 14:25:03 +02:00
Guillaume Ayoub
51558a873a Fix skip stack with reversed children
Fix #896.
2019-09-13 14:05:05 +02:00
Guillaume Ayoub
f1b1d140e2 Simplify line breaking
When we break an inline child twice, we have to add the initial (absolute) skip
stack and the new (relative) skip stack. The old code needed to check that the
children were the same before adding the stacks, but this detection was buggy
and complicated. The new implementation works even if the broken children are
not the same, removing the need to detect the previously broken child.

Fix #923.
2019-09-13 13:28:07 +02:00
Guillaume Ayoub
396ec71967 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-09-13 10:11:42 +02:00
Guillaume Ayoub
c43a2188d5 Add CLI argument printing system information 2019-09-13 10:01:45 +02:00
grewn0uille
958140734b Fix same_broken_child
The old code assumed that both skip stacks were absolute, but for the second
one previous children have already been skipped. We now check that we're in
the first child at each level, meaning that we're still breaking the same
child.

Related to #923.
2019-09-12 18:26:19 +02:00
grewn0uille
83d9efce86 Merge remote-tracking branch 'origin/master' into page_break_table 2019-09-11 17:17:45 +02:00
Guillaume Ayoub
24dfe8093b Version 49 2019-09-11 17:09:45 +02:00
Guillaume Ayoub
87133bcfce Clear cascaded styles when they're not needed anymore 2019-09-11 11:04:31 +02:00
grewn0uille
c0fa009655 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-09-10 17:29:10 +02:00
grewn0uille
f297bd3d94 Ignore position property on first-letter boxes to avoid layout troubles 2019-09-10 17:29:06 +02:00
Guillaume Ayoub
d63eac3181 Don't crash with object-fit: non images with no intrinsic size 2019-09-10 15:26:53 +02:00
Guillaume Ayoub
c790ff2094 Don't crash when properties needing base URL use var functions 2019-09-10 15:18:44 +02:00
Guillaume Ayoub
f66df067a1 Don't crash when using ex units in word-spacing in letter-spacing 2019-09-10 14:52:46 +02:00
Guillaume Ayoub
fb0887cfd7 Fix crash when using currentColor in gradients 2019-09-10 14:17:05 +02:00
Guillaume Ayoub
e7c452ce80 Fix collapsing margins for columns 2019-09-10 12:31:42 +02:00
Guillaume Ayoub
0c7a77f3ae Fix next in flow child detection during column layout 2019-09-10 12:31:20 +02:00
grewn0uille
48d8632eaa Avoid not in flow children to compute box height 2019-09-10 12:09:42 +02:00
grewn0uille
03edd011d2 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-09-09 18:24:39 +02:00
grewn0uille
e9ff909d80 Avoid crash when before and after have display: list-item 2019-09-09 17:58:54 +02:00
grewn0uille
871d69ab10 Remove useless style from cascaded_styles dictionnary 2019-09-09 17:04:24 +02:00
Guillaume Ayoub
4cb6045784 Fix typo introduced in previous commit 2019-09-06 17:12:18 +02:00
Guillaume Ayoub
615e298ade Don't include floating elements each time we try to render a column 2019-09-06 16:40:17 +02:00
Guillaume Ayoub
789b80e684 Only use in flow children to set columns height 2019-09-06 11:31:03 +02:00
Guillaume Ayoub
87d9e84f28 Avoid infinite loops when rendering columns 2019-09-05 15:45:17 +02:00
Guillaume Ayoub
cf7bff7af1 Fix test indentation 2019-09-05 15:28:23 +02:00
Guillaume Ayoub
d0c9a75e53 Fix table rendering with empty lines and rowspans
Fix #937.
2019-09-05 15:27:40 +02:00
Guillaume Ayoub
b06a3a9a6f Always set tabulation width
Not setting it makes Pango use a slightly different value of tabulation width,
breaking a test.
2019-09-05 13:46:01 +02:00
Guillaume Ayoub
29fcb45f0e Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-09-04 16:21:39 +02:00
Guillaume Ayoub
4dc0b119f6 Don't crash when small columns are wrapped in absolute blocks
Fix #897.
2019-09-04 16:20:07 +02:00
Guillaume Ayoub
074d147611
Merge pull request #922 from Kozea/perf
Improve performance
2019-09-03 12:29:48 +02:00
Guillaume Ayoub
fb62571f86 Fix gradient test
Use colors with even hexadecimal components for gradients to have a
deterministic result when colors are mixed.

Fix #913.
2019-09-03 12:24:39 +02:00
grewn0uille
9b6bd0f192 Merge branch 'master' into page_break_table 2019-08-30 11:46:41 +02:00
grewn0uille
d01f941ca6 Add tests for page breaks between tbodys 2019-08-30 11:45:47 +02:00
Tontyna
8277462bee Dont use deprecated Logger.warn 2019-08-26 10:16:31 +02:00
grewn0uille
23e2ba1ec6 Break pages avoid between groups 2019-08-23 18:00:52 +02:00
grewn0uille
26a0ee5963 Merge perf 2019-08-23 15:10:47 +02:00
grewn0uille
6dc59b8dd8 break pages avoid between tr 2019-08-21 19:00:55 +02:00
grewn0uille
fcda627731 Break before footer 2019-08-20 18:38:37 +02:00
grewn0uille
af6673d2f7 Fix tests 2019-08-20 18:35:05 +02:00
grewn0uille
dd779d1598 Support break-before in table. Related to #209 2019-08-20 18:20:15 +02:00