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
ae21c822bf
100% test coverage for expanders validation
2020-01-02 23:25:33 +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
647af0b228
Minor fixes
2020-01-02 13:27:11 +01:00
Guillaume Ayoub
47ec97bcaf
Remove useless explicit object inheritance
2020-01-02 12:06:58 +01:00
Guillaume Ayoub
79f2935917
Add more tests and warning messages
2019-12-30 23:37:58 +01:00
Guillaume Ayoub
a0526ceb1c
Minor fixes about counters
2019-12-30 22:33:29 +01:00
Guillaume Ayoub
6bc6c21fd9
Ingore wrong values for negative descriptor
2019-12-30 21:41:29 +01:00
Guillaume Ayoub
aed8b09543
Fix extended counters
2019-12-30 18:04:23 +01:00
Guillaume Ayoub
e3c03ab70b
Fix unknown counter
2019-12-30 13:05:03 +01:00
Guillaume Ayoub
473443c5eb
Support string for list-style-type
2019-12-30 13:03:04 +01:00
Guillaume Ayoub
3aecd0d500
Test counters
2019-12-30 10:28:34 +01:00
Guillaume Ayoub
a8c67e52cf
Support symbols() notation for list-style-position
2019-12-30 00:45:34 +01:00
Guillaume Ayoub
e362be6513
Fix symbolic counters
2019-12-30 00:43:06 +01:00
Guillaume Ayoub
bb4b2d45e6
Update documentation for counters
2019-12-27 15:26:15 +01:00
Guillaume Ayoub
4ecc0f8310
Prevent circular fallbacks for counters
2019-12-27 14:55:50 +01:00
Guillaume Ayoub
c245c29bfe
Discard additive-symbol rules with non strictly descending weights
2019-12-27 14:45:05 +01:00
Guillaume Ayoub
96bfd5c38a
Fix operator
2019-12-27 14:38:06 +01:00
Guillaume Ayoub
fe3cbffacc
Fix value attribute for li tags
2019-12-27 14:37:02 +01:00
Guillaume Ayoub
429f979438
Fix tests
2019-12-27 14:14:47 +01:00
Guillaume Ayoub
65a5cb6e11
Reject "none" as counter name
2019-12-27 11:52:24 +01:00
Guillaume Ayoub
932a75ec6e
Implement copy for counter styles
2019-12-27 11:52:07 +01:00
Guillaume Ayoub
a7e46d937d
Fix counter padding
2019-12-27 11:51:54 +01:00
Guillaume Ayoub
ce55b50802
Lint
2019-12-27 02:22:59 +01:00
Guillaume Ayoub
c35b7070a9
Fix font-face’s src descriptor
2019-12-27 02:22:21 +01:00
Guillaume Ayoub
0a65f0d40b
Handle most of the counter-style use cases
2019-12-27 02:14:24 +01:00
Guillaume Ayoub
c8f041f32c
Handle more counter types
2019-12-24 16:42:12 +01:00
Guillaume Ayoub
2da6ff3909
Add default counter class
2019-12-24 15:56:24 +01:00
Guillaume Ayoub
73244891f4
Add base code for @counter-style rules
2019-12-24 14:39:40 +01:00
Guillaume Ayoub
570451dae7
Remove print
2019-12-22 00:12:44 +01:00
Guillaume Ayoub
23a93a8cd0
Allow a second agrument for element()
2019-12-19 15:15:59 +01:00
Guillaume Ayoub
97b47ee14f
Add missing docstring
2019-12-19 10:49:31 +01:00
Guillaume Ayoub
c21028e12e
Don’t raise InvalidValues in the transform validator
...
Validators return None when value is incorrect, let’s use the same behaviour
for transform.
Related to #974 , #977 .
2019-12-19 10:26:30 +01:00
Guillaume Ayoub
a1df1de2a3
Don’t crash when improper values are given in var()
...
When the resolved value of var() is not allowed by the property, we have to get
the parent value (or the initial value if the property is not
inherited). Parent value (and some of the initial values) is already computed,
so we don’t have to call the computer function in this case.
Calling the computer function with already computed values can crash.
Fix #974 .
2019-12-18 16:00:15 +01:00
Guillaume Ayoub
f0c4b4345a
Don't set default values for zero-width presentational hints borders
...
The previous selectors were setting borders, even when the value for "border"
is "0". There was a comment about this in the PH stylesheet … and that's now
fixed!
Fix #1005 .
2019-12-15 22:34:57 +01:00
Guillaume Ayoub
b717065d02
Remove useless comment
2019-12-15 16:33:56 +01:00
Tontyna
8861cf69e6
Return appropriate tuple for string-set:none
2019-10-23 01:29:35 +02: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
c33ca0893d
Remove useless empty line
2019-09-20 17:24:21 +02:00
Guillaume Ayoub
1d144683d8
Use else instead of extra comparison in for loop
2019-09-20 11:15:48 +02:00
Guillaume Ayoub
7a4d6f821d
Support larger and smaller values for font-size
2019-09-20 11:12:12 +02:00
Guillaume Ayoub
87133bcfce
Clear cascaded styles when they're not needed anymore
2019-09-11 11:04:31 +02:00
Guillaume Ayoub
c790ff2094
Don't crash when properties needing base URL use var functions
2019-09-10 15:18:44 +02:00
Guillaume Ayoub
fb0887cfd7
Fix crash when using currentColor in gradients
2019-09-10 14:17:05 +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
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
359536e6e3
Merge branch 'master' into perf
2019-08-14 18:34:51 +02:00