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

182 Commits

Author SHA1 Message Date
Tontyna
62bada0a68 Collect all possibly pending 'parse_again'-functions 2018-06-24 11:56:32 +02:00
Tontyna
a3c07d91df Deepcopy counter_values (pending content_list) 2018-05-05 11:56:58 +02:00
Guillaume Ayoub
5727e57859 Copy style when modifying markers style, clean comments 2018-05-03 01:55:26 +02:00
Tontyna
12e3d5356a Consolidate space after/before list markers 2018-05-02 15:22:59 +02:00
Guillaume Ayoub
f54ab9c64f Add tests for target-text 2018-04-19 00:54:29 +02:00
Guillaume Ayoub
85b5b76ccf Fix and add tests about target-counters 2018-04-19 00:14:43 +02:00
Guillaume Ayoub
2694cacc95 Use 'url' keyword everywhere 2018-04-16 01:35:54 +02:00
Guillaume Ayoub
2be9959525 Clean many things about properties validation and computed values 2018-04-14 13:44:10 +02:00
Guillaume Ayoub
40588942f4 Add perentheses to target-* keywords too 2018-04-03 23:35:38 +02:00
Guillaume Ayoub
cb4fa7ef06 Use parentheses at the end of functions keywords 2018-04-03 23:05:46 +02:00
Guillaume Ayoub
85a65d76c8 Clean CSS functions 2018-04-02 23:57:37 +02:00
Guillaume Ayoub
07865f6371 Don't use a global target collector 2018-03-28 00:34:34 +02:00
Guillaume Ayoub
1039e35653 Replace enum by simple string 2018-03-27 23:25:39 +02:00
Guillaume Ayoub
9020b4bec0 Remove intermediate steps logging 2018-03-27 14:02:03 +02:00
Guillaume Ayoub
59a81dc746 Don't pre-compute string-set
According to the spec, the string-set property has a computed value equal to
the specified value, we can't pre-compute values even if it looks easier this
way.
2018-03-26 01:25:10 +02:00
Guillaume Ayoub
21743a8fdf Remove debug messages and fix some minor typos 2018-03-26 00:18:24 +02:00
Guillaume Ayoub
a6366e32c0 Clean some docstrings 2018-03-26 00:02:13 +02:00
Guillaume Ayoub
b60fb46430 Get content string from content list 2018-03-25 23:55:05 +02:00
Tontyna
f66c8d095f Merge branch 'master' into target-counter 2018-03-14 00:56:31 +01:00
Tontyna
c0c706fc91 Remove duplicate code: target-* for all
In the box building and page layout steps, the CSS properties
`content`, `string-set` and `bookmark-label` now use the same code
to evaluate their <content-list> values.
As a concequence the target-* functions work for all three properties.
2018-03-03 23:54:28 +01:00
Guillaume Ayoub
3ced7ac420 Transfrom all flex items parent boxes into block boxes 2018-02-25 23:41:15 +01:00
Tontyna
2b2eebd259 Merge branch 'master' into target-counter 2018-02-25 10:05:37 +01:00
Guillaume Ayoub
19365e824e Fix all crashes with W3C test suite 2018-02-24 04:41:11 +01:00
Guillaume Ayoub
3610016a27 Don't translate rtl columns twice
Fix #574.
2018-02-20 02:13:52 +01:00
Guillaume Ayoub
092b03bac6 Don't translate rtl columns twice
Fix #574.
2018-02-20 02:11:45 +01:00
Guillaume Ayoub
5341031162 Merge branch 'master' into flexbox 2018-02-19 14:32:19 +01:00
Tontyna
925466fa35 cleanup code once more to pass Travis CI check 2018-02-16 15:20:32 +01:00
Tontyna
fed74d1175 cleanup code to pass Travis CI check 2018-02-16 14:56:25 +01:00
Tontyna
4519ba5bee introduce TARGET_COLLECTOR for target-counter, -counters and -text 2018-02-11 22:42:26 +01:00
Guillaume Ayoub
2ef988ca20 Fix string-set logic 2018-01-23 01:55:16 +01:00
Guillaume Ayoub
6caec1ab4f Use content(first-letter) as defined for ::first-letter 2018-01-23 00:52:49 +01:00
Guillaume Ayoub
838933f428 Handle content(first-letter) 2018-01-23 00:45:28 +01:00
Guillaume Ayoub
c6e54d77f0 Remove pylint comments 2018-01-14 01:52:49 +01:00
Guillaume Ayoub
16e8186568 Drop Python 2 support 2018-01-14 01:48:17 +01:00
Guillaume Ayoub
ad11edfff2 Remove StyleDict objects 2018-01-13 17:41:08 +01:00
Guillaume Ayoub
724565f27a Don't allow attribute access to StyleDict objects 2018-01-13 17:05:23 +01:00
Guillaume Ayoub
359d42c641 Remove style's anonymous attribute 2018-01-13 16:34:14 +01:00
Guillaume Ayoub
0821148124 Handle align-items and align-self 2018-01-11 23:40:14 +01:00
Guillaume Ayoub
ce342cf0a2 Don't strip non-breaking spaces during flex layout 2018-01-11 00:45:42 +01:00
Guillaume Ayoub
f868abfdb2 Handle floats and inline-level boxes in flex boxes 2018-01-09 00:41:07 +01:00
Guillaume Ayoub
e9fdb0d843 Don't consider the flex container box as a block container box 2018-01-09 00:40:06 +01:00
Guillaume Ayoub
4f60ba9173 Initial support of baseline alignments for flex layout 2017-12-29 01:23:41 +01:00
Guillaume Ayoub
3027417f88 Merge branch 'master' into flexbox 2017-12-27 01:07:27 +01:00
Guillaume Ayoub
d62bfec60b Keep track of removed collapsing spaces for wrap opportunities 2017-12-26 12:39:20 +01:00
Guillaume Ayoub
69b64d2bd0 First working version of flex layout 2017-12-23 00:19:32 +01:00
Guillaume Ayoub
878cc41c51 Add a keywoard to translate boxes ignoring floating children 2017-12-12 18:20:00 +01:00
Guillaume Ayoub
ce70354488 Don't cross the whole tree when translating boxes by (0, 0) 2017-12-12 18:18:18 +01:00
lucien
34b825033d WIP: Flexbox - Step 1 and 2 of flexbox layout 2017-12-07 17:34:28 +01:00
Guillaume Ayoub
d4357e5a4a Copy styles for split boxes
This fixes blocks split between pages and inlines boxes split by block boxes.

Increases memory usage, related to #70.
2017-08-17 07:54:14 +02:00
Guillaume Ayoub
c41b55eb93 Don't crash when there's no displayed root element 2017-08-14 14:11:20 +02:00