Guillaume Ayoub
6d9b9aa7fa
Use start/end instead of left/right to define text alignment offset
...
As the rtl lineboxes are now right aligned (just like any other block-level
box), we don’t have to take care about direction when calculating offset.
Text is now translated when text-align is different from start. It’s translated
to the right with ltr and to the left with rtl.
2020-03-15 01:06:54 +01:00
Guillaume Ayoub
34ad3b5050
Merge branch 'master' into clean
2020-01-07 22:36:38 +01:00
Guillaume Ayoub
cb610e88f0
Support counter-set
...
Code was sleeping commented since December 2011 and could have been working in
WeasyPrint 0.3. Easiest feature ever thanks to @SimonSapin.
Fix #1019 .
2020-01-06 22:45:37 +01:00
Guillaume Ayoub
b40ad461be
Remove repeated copyright assignments in files
...
Everything is replaced by a more explicit message in the COPYRIGHT file.
Inspired by rust-lang/rust#43498 and rust-lang/rust#57108 .
2020-01-02 14:10:09 +01:00
Guillaume Ayoub
d9432a72f5
Remove the Running class
2019-09-27 11:34:36 +02:00
Holger Brunn
b30ffb1694
[ADD] position: running(); content: element();
2019-09-22 23:21:31 +02:00
Guillaume Ayoub
c813d45d61
First naive version of text-overflow support
2019-07-03 15:37:29 +02:00
Manuel Barkhau
601b20864c
add css parsing for object-position
2019-06-01 01:44:30 +02:00
Manuel Barkhau
9f61cd688b
Add object-fit parsing and layout
2019-06-01 01:39:40 +02:00
Gabriel Corona
34127350b6
Implement bookmark-state support
2019-05-19 19:31:32 +02:00
Guillaume Ayoub
b88cf3654b
Add documentation for text decoration
2019-05-14 23:45:53 +02:00
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
5dd6e4c2cd
Merge branch 'master' into box-decoration-break
2019-03-19 17:50:16 +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
2a4521099c
Merge branch 'master' into box-decoration-break
2019-03-15 15:10:13 +01:00
Guillaume Ayoub
b7a9fe7dcc
Update copyright
2019-03-04 11:04:06 +01:00
Guillaume Ayoub
ed5b9d2384
Add box-decoration-break to the list of supported properties
2019-02-27 11:44:43 +01:00
Guillaume Ayoub
17cd8e9fe8
Use empty tuple as computed value of 'marks: none'
...
Using 'none' was causing the 'if bleed and marks' condition in
draw.draw_background to be always true, and thus always draw at least an empty
SVG file on the page background.
Fix #780 .
2019-01-30 22:39:37 +01:00
Guillaume Ayoub
56904baa79
Use the same copyright line everywhere
2018-09-20 18:46:27 +02:00
Guillaume Ayoub
0eedd2fa19
Move common image validation functions into utils
2018-03-31 23:28:11 +02:00
Guillaume Ayoub
0a4f2d9ffb
Split validation module
2018-03-31 22:13:08 +02:00
Guillaume Ayoub
99f2c05f82
Handle mix-width and min-height: auto
2018-03-06 01:00:45 +01:00
Guillaume Ayoub
216fe2b6c6
Merge branch 'master' into flexbox
2018-03-05 01:49:11 +01:00
Guillaume Ayoub
05b2a59e15
Propagate overflow to the table wrapper
...
Without that, tables with "overflow: auto" don't draw their borders.
Related to #582 .
2018-03-04 22:47:39 +01:00
Guillaume Ayoub
5341031162
Merge branch 'master' into flexbox
2018-02-19 14:32:19 +01:00
Guillaume Ayoub
503dd85198
Use real sets instead of parsed strings for properties
2018-02-03 23:52:16 +01:00
Guillaume Ayoub
16e8186568
Drop Python 2 support
2018-01-14 01:48:17 +01:00
Guillaume Ayoub
91685e1422
Handle align-content
2018-01-12 00:12:06 +01:00
Guillaume Ayoub
0821148124
Handle align-items and align-self
2018-01-11 23:40:14 +01:00
Guillaume Ayoub
d040b798a0
Handle justify-content
2018-01-11 01:01:14 +01:00
Guillaume Ayoub
f7b095897d
Handle flex order
2018-01-09 13:17:45 +01:00
Guillaume Ayoub
5588132c99
Initial support of flex-(basis|grow|srink) and of *-reverse values
2018-01-07 23:53:07 +01:00
Guillaume Ayoub
c6255b8059
Parse flex-flow and flex-direction
2018-01-07 21:11:43 +01:00
Guillaume Ayoub
60ba2e5a93
Initial implementation of flex-wrap
2018-01-07 01:31:28 +01:00
Guillaume Ayoub
572822a353
Use a set instead of a regex to detect INITIAL_NOT_COMPUTED values
...
That's an easy ~1% performance enhancement!
2017-10-13 09:48:57 +02:00
Guillaume Ayoub
0fcf4134ca
Merge pull request #516 from Kozea/pdfrw
...
Use pdfrw instead of editing PDF files directly
2017-10-05 11:18:12 +02:00
Václav Pokluda
05446f5eff
Added support to work with bleed like padding (bleed-top/right/bottom/left)
2017-09-21 12:03:09 +02:00
Guillaume Ayoub
c056039f58
Update specification statuses
...
Related to #498 .
2017-09-05 22:58:11 +02:00
Guillaume Ayoub
71d54095bd
Add support of marks and bleed pages properties
...
Fix #471 .
2017-09-05 15:44:50 +02:00
Guillaume Ayoub
84dd9b8002
Merge branch 'master' into namedpages
2017-08-02 23:52:17 +02:00
Guillaume Ayoub
a3e2c474f0
Transform StyleDict into a kind of frozen dict
...
This forces to use a copy when changes are needed. Internal mutable structures
have also been changed into immutable ones (i.e. lists have been turned into
tuples).
This change is a really useful first step to greatly optimize memory and time
needed to render large documents, as allows us to cache style dicts more
safely. It's been already done in StyleDict.inherit_from, with a ~5-10% memory
benefice.
2017-07-28 13:35:06 +02:00
Guillaume Ayoub
9270697e80
Handle the page property
2017-07-18 02:01:36 +02:00
Simon Sapin
0aa62e249e
Switch to tinycss2
2017-03-26 18:44:21 +02:00
Guillaume Ayoub
4f4b4ed598
Use isort in tests
2017-03-25 00:33:36 +01:00
Guillaume Ayoub
4c0fcfe44f
Support font-variant and font-feature-settings descriptors
2016-10-07 13:42:05 +02:00
Guillaume Ayoub
f780cc033e
Support font-language-override
2016-09-13 05:02:36 +02:00
Guillaume Ayoub
4156febcbf
Support CSS Fonts level3
2016-09-12 00:23:52 +02:00
Guillaume Ayoub
698ce20f1f
Support break-* properties
2016-08-30 13:35:23 +02:00
Guillaume Ayoub
fef2469dc3
Merge branch 'columns'
2016-08-26 15:13:20 +02:00