grewn0uille
f297bd3d94
Ignore position property on first-letter boxes to avoid layout troubles
2019-09-10 17:29:06 +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
Tontyna
8277462bee
Dont use deprecated Logger.warn
2019-08-26 10:16:31 +02:00
Guillaume Ayoub
8ac7afe4ca
Remove add_declaration
...
We can now get style in the parent loop, avoiding a large number of calls to
setdefault.
2019-08-19 18:23:17 +02:00
Guillaume Ayoub
feae58052c
Merge branch 'master' into perf
2019-08-17 11:06:29 +02:00
Guillaume Ayoub
b8c19a2878
Heal my psychotic desorders
2019-08-17 11:04:57 +02:00
Tontyna
b5a4cb739c
fix erroneous document title
2019-08-16 22:01:46 +02:00
Guillaume Ayoub
359536e6e3
Merge branch 'master' into perf
2019-08-14 18:34:51 +02:00
Guillaume Ayoub
cd925bc76c
Revert "Fix tests for Pango 1.44"
...
This reverts commit d6da699f91
.
2019-08-14 18:34:42 +02:00
Guillaume Ayoub
aab0fa5b9d
Fix line height with Pango > 1.44
...
Pango > 1.44 returns a wrong baseline when no text is set on the layout. We
now have to set text when calculating metrics for strut layouts.
Fix #917 .
2019-08-14 18:32:44 +02:00
Guillaume Ayoub
440070b8da
Fix padding and margin management for column flex boxes
...
Nothing more than a stupid typo. Fix #919 .
2019-08-14 16:29:45 +02:00
Guillaume Ayoub
554225b4f7
Fix typo in comment
2019-08-14 14:50:06 +02:00
Guillaume Ayoub
91d8c0fbec
Don't remove repeated headers when line groups avoid breaks
...
When no table content is small enough to fit in one page, we remove repeated
headers and footers to give table content more space. This is a good idea for
complicated situations, but not adapted when line groups avoid page breaks
inside.
This commit keeps headers and footers when the next line group avoids page
breaks, by forcing to render at least one line of the table, like if the page
was empty.
2019-08-14 14:37:49 +02:00
Guillaume Ayoub
d6da699f91
Fix tests for Pango 1.44
...
Fix #917 .
One test fails with current 1.44.3 version, because of bug 397 [1] fixed
in 1.44.4 (not released yet).
[1] https://gitlab.gnome.org/GNOME/pango/issues/397
2019-08-08 16:47:05 +02:00
Guillaume Ayoub
2ee4516786
Handle the ::marker pseudo-element
...
Fix #700 .
2019-08-07 23:01:41 +02:00
Guillaume Ayoub
fb90a736d1
Add test about inline images with no size
...
Related to #901 .
2019-07-25 10:51:25 +02:00
Guillaume Ayoub
7efd1e135f
Fix width of replaced boxes with no intrinsic width
...
Fix #901 .
2019-07-24 15:18:38 +02:00
Guillaume Ayoub
ba2b4542e8
Merge branch 'master' into perf
2019-07-24 10:54:20 +02:00
Guillaume Ayoub
8d10c011d9
Don't respect table cell width when content doesn't fit
...
Fix #906 .
2019-07-24 10:47:55 +02:00
Guillaume Ayoub
620e0754f4
Fix lint
2019-07-23 18:07:14 +02:00
Guillaume Ayoub
328de5e67e
Merge pull request #907 from makeleaps/nowrap
...
Refactor LayoutContext building
2019-07-23 18:01:56 +02:00
Raphael Gaschignard
afc7dabc1b
Refactor LayoutContext building
...
this will provide a simpler API for testing context-using functions inside tests
2019-07-23 14:12:08 +09:00
grewn0uille
a86627943f
Fix margin collapsing between caption and table wrapper.
2019-07-19 18:31:17 +02:00
Guillaume Ayoub
abcd386e2f
Remove useless TODO
...
This TODO has been fixed with #771 .
2019-07-18 16:40:42 +02:00
Guillaume Ayoub
0142689fd9
Merge branch 'master' into perf
2019-07-18 16:33:22 +02:00
grewn0uille
135dc06c9a
Handle recto/verso on page break.
2019-07-18 14:34:45 +02:00
Guillaume Ayoub
b328b5766c
Remove useless TODO
...
FakeHTML actually reads data from a file.
2019-07-18 11:54:03 +02:00
Guillaume Ayoub
97a5aaea07
Remove work done twice when splitting lines between characters
...
There used to be a problem with WRAP_CHAR method of Pango, but it's fixed. As
nothing is said in Pango's Changelog, the probem may have been in our heads,
and that wouldn't be surprising at all.
2019-07-18 11:39:35 +02:00
Guillaume Ayoub
997882514e
Fix the way display is set when no box is generated from tree
...
Add related tests too.
2019-07-18 11:22:07 +02:00
Guillaume Ayoub
d24211d82a
Refuse too many "normal" values in font expander
2019-07-17 15:00:20 +02:00
Guillaume Ayoub
8b2b25f702
Fix tests relying on a modified CSS parsing rule
...
In the 2014 version of CSS Syntax Module Level 3 [1], meeting an EOF character
before the end of a string would just return the string token. In the 2019
candidate recommendation [2], this behavior must raise a parse error.
This commit fixes a test that was relying on the older behavior.
TinyCSS2 will follow the new specification from version 1.1.0.
[1] https://www.w3.org/TR/2014/CR-css-syntax-3-20140220/#consume-a-string-token
[2] https://www.w3.org/TR/2019/CR-css-syntax-3-20190716/#consume-string-token
2019-07-17 11:22:38 +02:00
Stani
67f031b8e7
Add state to bookmark tree documentation.
...
There is a breaking change in make_bookmark_tree, which was not documented.
2019-07-15 15:15:34 +02:00
Guillaume Ayoub
7071e36ce4
Remove device_size parameter everywhere
...
The device_size parameter was passed to many layout features, but it was only
used to set default size of replaced boxes with no implicit or explicit size
set. As this case is really rare for printed documents, and as it's also rare
to have printed supports that small, we can remove this "feature".
Moreover, in CSS3-images, another definition called "default object size" is
used to set replaced box size when no size is defined. This size doesn't seem
to be defined for images.
2019-07-11 17:17:28 +02:00
Guillaume Ayoub
8a64fd40db
Remove TODO
2019-07-11 17:01:53 +02:00