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

1857 Commits

Author SHA1 Message Date
Gabriel Corona
9a73fff1cf Add support for full CSS3 text-decoration
* parse text-decoration as shorthand
* draw different colors
* basic text-decoration-style
* no 'wavy' support for now
2019-04-29 21:13:01 +02:00
Guillaume Ayoub
2fa7c2fc18 Version 47 2019-04-12 16:45:24 +02:00
Guillaume Ayoub
5ffdc8270a Update default_url_fetcher's documentation 2019-04-12 16:34:19 +02:00
Guillaume Ayoub
cc512b3ec0 Fix line breaking tests 2019-04-12 16:27:33 +02:00
Guillaume Ayoub
039b0a680d Don't rely on iter_get_index to get current line break index
pango_layout_iter_get_index gives the visual order, not the logical order, so
we can't rely on this to fix the line break index.

Fix #828.
2019-04-12 16:04:25 +02:00
Guillaume Ayoub
5ceddcb2ca
Merge pull request #843 from Kozea/variables
Add CSS variables
2019-04-10 13:46:28 +02:00
Guillaume Ayoub
5a2553e893
Merge pull request #846 from Kozea/nth-page
Support the `:nth()` page selector.
2019-04-10 13:46:18 +02:00
mohdnajdy
87d586f431
remove ssl import 2019-04-04 15:12:05 +03:00
mohdnajdy
afc244123f
set parameter name to ssl_context and pass directly to urlopen 2019-04-04 15:04:05 +03:00
mohdnajdy
35389682a9
fixed issue of line to long 2019-04-04 14:49:30 +03:00
mohdnajdy
81f0002233
fixed import order 2019-04-04 14:41:04 +03:00
mohdnajdy
4b8b56f8bb
allow ability to ignore ssl verification within default_url_fetcher 2019-04-04 14:21:41 +03:00
Guillaume Ayoub
d637212e8d Handle :nth(An+B) notation 2019-04-02 16:57:45 +02:00
Guillaume Ayoub
672407610e Add tests 2019-04-02 16:36:56 +02:00
Guillaume Ayoub
cff70ee18a Clean the nth() parsing function 2019-04-02 16:26:57 +02:00
Guillaume Ayoub
fc7db276e5 Add page declarations on demand
With the previous system, we were listing all page types as the cartesian
product of page names and pseudo selectors. Declarations were added for all
these possible page types.

The nth() page selector makes this system impossible, as we can't make the
cartesian product with a number of pages we don't know at the beginning of the
rendering. We now add declarations before rendering each page, based on the
properties of the page.

This new way is faster when the total number of pages is lower than the
cartesian product of possible pages. For long documents, we could improve speed
by detecting CSS rules based on page index or page name, and use cached results
for all pages that don't rely on such rules.
2019-04-02 12:39:00 +02:00
Guillaume Ayoub
3e953b457e Simplify page style declaration 2019-04-02 12:00:47 +02:00
Guillaume Ayoub
36fa280bdb Allow repeted page pseudo-classes, 2nd edition 2019-04-02 11:59:12 +02:00
Guillaume Ayoub
1d0c3e435f Use explicit variable names 2019-04-02 11:37:16 +02:00
Guillaume Ayoub
48775182e6 Set nth() selector specificity 2019-04-02 11:36:07 +02:00
Guillaume Ayoub
ce7e9dd049 Allow multiple specifications of page pseudo-classes 2019-04-02 11:35:41 +02:00
Guillaume Ayoub
be6c46ce86 Minor fixes 2019-04-02 11:35:23 +02:00
Guillaume Ayoub
ed4f00848f Use empty string as default value of named page
That's the value given in the spec, using None doesn't add anything and even
introduces bugs.
2019-04-02 11:19:48 +02:00
Guillaume Ayoub
b49719820b Fix tests 2019-04-01 21:00:27 +02:00
Guillaume Ayoub
f2e9784ee7 Add a stupid and broken support of nth page selector 2019-04-01 18:45:59 +02:00
Guillaume Ayoub
f1a6da72ac Set set_computed_styles as a StyleFor method 2019-04-01 15:24:18 +02:00
Guillaume Ayoub
84e1813c6c Merge branch 'master' into media-queries 2019-04-01 14:41:51 +02:00
Guillaume Ayoub
80f9a34383 Fix justified and underlined text
Fix #797.
2019-04-01 14:25:13 +02:00
Guillaume Ayoub
bd77dce4d5 Fix justified and underlined text
Fix #797.
2019-04-01 14:23:24 +02:00
Guillaume Ayoub
5f2530fcac Add tests 2019-04-01 13:56:58 +02:00
Guillaume Ayoub
70697bc6fe Ignore initial value in CSS variables 2019-04-01 13:48:44 +02:00
Guillaume Ayoub
6660fa4b1c Merge branch 'master' into variables 2019-04-01 12:57:25 +02:00
Guillaume Ayoub
9b8f3297c1 Fix test fixed by previous fix (true story) 2019-03-27 11:47:10 +01:00
Guillaume Ayoub
ee69b32dfb Fix margin-break: auto
Fix #835.
2019-03-27 11:30:52 +01:00
Guillaume Ayoub
29820d63c5 Break unbreakable table groups if we really need to
Fix #273.
2019-03-22 16:41:10 +01:00
Guillaume Ayoub
e487a985b1 Don't crash when flex items are replaced boxes 2019-03-22 16:15:50 +01:00
Guillaume Ayoub
13fb5aba84 Merge branch 'master' into variables 2019-03-21 11:28:58 +01:00
Guillaume Ayoub
fb75098c66 Version 46 2019-03-20 17:40:07 +01:00
Guillaume Ayoub
27e70fcb48 Clean stable/unstable properties 2019-03-20 17:37:24 +01:00
Guillaume Ayoub
7b53d0e146 Respect bottom margin/border/padding with box-decoration-break:clone
Related to #771.
2019-03-20 13:30:13 +01:00
Guillaume Ayoub
5dd6e4c2cd Merge branch 'master' into box-decoration-break 2019-03-19 17:50:16 +01:00
Guillaume Ayoub
d134ea743a Add test about flexbox baseline
Related to #765.
2019-03-19 13:08:18 +01:00
Guillaume Ayoub
a5e9127859 Don't crash when no baseline can be found in flexbox children
Fix #765.
2019-03-19 13:05:58 +01:00
Guillaume Ayoub
fd90af6061 Avoid auto margins in flex layout
Fix #800.

The way auto margins are resolved for the parent is currently really stupid. We
have to find exactly when these margins must be set.
2019-03-19 11:49:27 +01:00
Guillaume Ayoub
02f9248567 Typo number 2 2019-03-18 21:10:15 +01:00
Guillaume Ayoub
3f730481f3 Typo 2019-03-18 18:17:41 +01:00
Guillaume Ayoub
75d8d983ae Handle margin-break
Some corner-cases are not handled yet, but that's much better than the current
situation.

Fix #115.
2019-03-18 18:13:43 +01:00
Guillaume Ayoub
5fc905baa1 Clean status and URL of CSS specifications 2019-03-18 15:08:50 +01:00
Guillaume Ayoub
498fb6cd0d Clean string-set validation, add tests
Related to #827.
2019-03-18 14:05:55 +01:00
Guillaume Ayoub
856262802e Clean string-set tests 2019-03-18 13:48:59 +01:00