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

3195 Commits

Author SHA1 Message Date
Guillaume Ayoub
66958573e5 Use only one del statement when possible 2019-07-09 16:09:23 +02:00
Guillaume Ayoub
80c5a82871 Version 48 2019-07-08 13:51:38 +02:00
Guillaume Ayoub
f5d4ee2824
Merge pull request #891 from Kozea/text-overflow
Support text-overflow
2019-07-08 13:27:13 +02:00
Guillaume Ayoub
a39951b43b Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-07-04 14:30:41 +02:00
Guillaume Ayoub
f5eec1e759 Update changelog for next version 48 2019-07-04 14:30:06 +02:00
Guillaume Ayoub
a0d912e0c6 Update documentation about text-overflow 2019-07-04 14:28:57 +02:00
Guillaume Ayoub
6dcc17f151 Take care of text-overflow to set ellipsis
Fix #874.
2019-07-04 12:00:03 +02:00
Guillaume Ayoub
e88190fc14 Use Pango's set_ellipsize 2019-07-03 16:20:58 +02:00
Guillaume Ayoub
c813d45d61 First naive version of text-overflow support 2019-07-03 15:37:29 +02:00
Guillaume Ayoub
e080d97ee8
Merge pull request #878 from Kozea/column-span
Add partial support for column-span property.
2019-07-03 15:04:29 +02:00
Guillaume Ayoub
adb521643c Support column-span
Fix #719.

We also used the real rendering stack to find the columns heights, fix #696.
2019-06-28 17:33:35 +02:00
Guillaume Ayoub
a2ec8567a1 Merge branch 'master' into column-span 2019-06-28 15:04:28 +02:00
Guillaume Ayoub
57f216cb91 Clean some code in draw module 2019-06-25 16:13:11 +02:00
Guillaume Ayoub
08fe4bae3a
Merge pull request #887 from randomstuff/text-decoration-wavy
Implement text-decoration: wavy
2019-06-25 14:23:51 +02:00
Gabriel Corona
ef5c99a360 Implement text-decoration: wavy 2019-06-24 21:02:25 +02:00
Guillaume Ayoub
3befe98213
Merge pull request #854 from nathandem/feat/ndm/show-header-footer-integration
Show how to include any header/footer on a PDF
2019-06-22 21:52:45 +02:00
Guillaume Ayoub
668ca840c7 Minor style fixes 2019-06-22 21:49:28 +02:00
Guillaume Ayoub
ae43048a49
Merge pull request #869 from randomstuff/text-decoration
Fix broken dash/dotted pattern in text-decoration with inline elements
2019-06-22 21:46:41 +02:00
Guillaume Ayoub
923e45b717 Add test for #885. 2019-06-22 21:43:08 +02:00
Guillaume Ayoub
f635c6d3bb Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-06-22 21:38:02 +02:00
Guillaume Ayoub
5e0f6d494f Actually use the content box to resolve flex items percentages
Fix #885.
2019-06-22 21:37:27 +02:00
grewn0uille
d5b702ef32 WIP test column-span 2019-06-06 13:54:35 +02:00
Guillaume Ayoub
0a7a183009
Merge pull request #877 from theopeek/theopeek-patch-849
Update install.rst
2019-06-05 09:59:45 +02:00
grewn0uille
497a0b54dd Add partial support for column-span property.
Related to #719.
2019-06-04 18:03:32 +02:00
theopeek
e144711595
Update install.rst
Improvements to macOS install guide
Fix for issue `#849 <https://github.com/Kozea/WeasyPrint/issues/849>`
2019-06-03 21:57:15 +02:00
Guillaume Ayoub
8499379dd1 Don't repeat background images when it's not needed
For now, we only avoid the repetition when we have no-repeat for x and y
axes. We could do this when the painting area is smaller than the image and
when the position doesn't require a repetition. But… Who cares?

Fix #238.

There was also a bug in the size of the surface needed to draw images that are
not repeated. Before this commit, the repeat size was the painting size * 2 to
avoid glitches at the boundaries. But we have to be sure to draw at least the
whole image, as the image may be translated before being drawn. The
multiplication is not needed as we don't repeat the image anymore.

Related to #669.
2019-06-02 23:03:19 +02:00
Guillaume Ayoub
6cb24dbdff Update documentation about object-position and object-fit 2019-06-02 18:34:01 +02:00
Guillaume Ayoub
9f442be640 Move percentage function into percentages module 2019-06-02 18:06:25 +02:00
Guillaume Ayoub
846515b109 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-06-02 17:55:51 +02:00
Guillaume Ayoub
ef74806c8d
Merge pull request #875 from mbarkhau/feature_object_fit_and_pos
Feature object-fit and object-position
2019-06-02 17:55:05 +02:00
Guillaume Ayoub
dd6572b999 Simplify parse_pixels 2019-06-02 17:50:38 +02:00
Guillaume Ayoub
f77efe8690
Merge pull request #876 from mbarkhau/refactor_pixel_tests
refactor: add and use parse_pixels in tests
2019-06-02 17:23:45 +02:00
Manuel Barkhau
f48fbf0923 lint fix 2019-06-02 16:18:56 +02:00
Manuel Barkhau
ce8ab0f4f0 use object-position for layout of images 2019-06-02 16:16:51 +02:00
Manuel Barkhau
d687c12ff7 refactor: add and use parse_pixels in tests 2019-06-02 12:40:45 +02:00
Manuel Barkhau
601b20864c add css parsing for object-position 2019-06-01 01:44:30 +02:00
Manuel Barkhau
20afa51175 refactor: factor out "precentage" function 2019-06-01 01:39:40 +02:00
Manuel Barkhau
9f61cd688b Add object-fit parsing and layout 2019-06-01 01:39:40 +02:00
Guillaume Ayoub
ec4504d23f Set a minimum height for empty list elements with outside marker
The spec says that we can do what we want to improve the rendering in such
cases. Adding a line would probably give exactly the same rendering as if there
were text, but the difference is so small that there's no need to hack the
formatting structure and keep the fix in 3 small lines during the layout.

Fix #873.
2019-05-31 16:56:52 +02:00
Guillaume Ayoub
9b2cbb8943 Remove testing code 2019-05-31 07:19:43 +02:00
Guillaume Ayoub
d753b301a1 Always set outside_list_marker property on boxes 2019-05-31 07:18:25 +02:00
Guillaume Ayoub
a23d4658fc Set marker layout only when needed 2019-05-31 06:36:41 +02:00
Guillaume Ayoub
2ce03092f1 Small code and style improvements around bookmark-state
Related to #870.
2019-05-23 23:55:56 +02:00
Guillaume Ayoub
e881b66859
Merge pull request #870 from randomstuff/bookmark-state
Implement bookmark-state support
2019-05-23 23:15:37 +02:00
Guillaume Ayoub
426cb7e37d Force CairoSVG 2.4.0+
2.2.0 is actually needed, but tests are fixed with 2.4.0.
2019-05-20 13:47:14 +02:00
Guillaume Ayoub
37e788e8c3 Force SVG size
Related to #867.
2019-05-20 12:31:30 +02:00
Gabriel Corona
34127350b6 Implement bookmark-state support 2019-05-19 19:31:32 +02:00
Gabriel Corona
e704b8f8e2 Fix broken dashed/dotted pattern in text-decoration with inline elements
Example:

~~~html
<style>
p {
  text-decoration: underline green dotted;
}
span {
  color: red;
  text-decoration: underline red dotted;
}
</style>

<p> Lorem <span>ipsum</span> dolor sit amet, <span>consectetur</span>
  adipiscing elit, sed do eiusmod tempor <span>incididunt</span> ut
  labore et dolore <span>magna aliqua</span>. Ut enim ad minim veniam,
  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
  commodo consequat. Duis aute irure dolor in reprehenderit in
  voluptate velit esse cillum dolore eu fugiat nulla
  pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
  culpa qui officia deserunt mollit anim id est laborum.</p>
~~~
2019-05-18 00:17:38 +02:00
Guillaume Ayoub
76479de01f Don't align lines larger than their parents
Related to #867.
2019-05-17 16:19:42 +02:00
Guillaume Ayoub
9012888df2 Set inline table baseline
"The baseline of an 'inline-table' is the baseline of the first row of the
table."

Related to #867.
2019-05-17 15:49:13 +02:00