1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 16:37:47 +03:00
Commit Graph

676 Commits

Author SHA1 Message Date
Guillaume Ayoub
61756d1c15 Add tests for variable dimensions 2012-01-12 19:10:53 +01:00
Guillaume Ayoub
2d182d4884 Remove a useless "if" test, fix the margin affectations 2012-01-12 19:10:24 +01:00
Simon Sapin
d483f77a8e Do not use cairo.EXTEND_REPEAT when background-repeat is 'no-repeat'.
There seem to be a bug in cairo that rasterizes SurfacePattern
objects when extend is EXTEND_REPEAT.
2012-01-11 19:15:16 +01:00
Simon Sapin
c641bbbdc3 Give the image URL to CairoSVG for <use> 2012-01-11 18:43:45 +01:00
Simon Sapin
500f3d3b4d Implement more cases for margin boxes variable dimension. 2012-01-09 19:19:59 +01:00
Simon Sapin
2f6e27a111 Margin boxes: correct layout when width is auto but not margins. 2012-01-06 17:04:36 +01:00
Simon Sapin
717b01a840 Framework to handle the various cases of Variable dimension with rule 2 2012-01-06 15:16:24 +01:00
Simon Sapin
943e896f8e Rename stuff. 2012-01-03 18:45:31 +01:00
Simon Sapin
d3610df265 WIP: More variable dimension layout for margin boxes. 2012-01-03 10:56:02 +01:00
Simon Sapin
0493b99e04 Make pixel tests not write PNGs unless a test fails. 2012-01-02 15:28:51 +01:00
Simon Sapin
0c98044532 Avoid layout work for boxes that end up not generated. 2011-12-30 17:37:49 +01:00
Simon Sapin
215091f45c Revert to having used values for border width.
This reverts commit 9464643f24 and adds
more fixes.
2011-12-30 17:26:56 +01:00
Simon Sapin
68507d455d WIP: variable dimension for margin boxes 2011-12-30 17:13:12 +01:00
Simon Sapin
29263555c4 Bugfix: used values for page margins, not computed values. 2011-12-30 16:43:58 +01:00
Simon Sapin
24162ef3f2 Remove the DummyBox hack. 2011-12-30 16:33:56 +01:00
Simon Sapin
6566c0034a Fixes and more tests for fixed dimension layout of margin boxes. 2011-12-29 18:31:59 +01:00
Simon Sapin
4435aa8200 Refactor for non-corner margin boxes. (Still no actual layout for these.) 2011-12-29 16:17:21 +01:00
Simon Sapin
904c9b80f0 Layout for corner margin boxes. 2011-12-29 12:18:41 +01:00
Simon Sapin
c4234ec80b Create margin boxes (not laid-out correctly yet.) 2011-12-28 16:47:59 +01:00
Simon Sapin
e1f59a3667 Prepare for margin boxes, make PageBox a ParentBox. 2011-12-28 12:54:36 +01:00
Simon Sapin
267e89e23b Use the specificity for @page selectors from cssutils. 2011-12-27 15:57:36 +01:00
Simon Sapin
71b1563879 Run the cascade and computed values for margin at-rules. 2011-12-27 15:16:43 +01:00
Simon Sapin
7584b5ace7 Pylint cleanups. 2011-12-26 12:47:26 +01:00
Simon Sapin
6ee88359f9 Better reporting of image errors. 2011-12-26 11:48:40 +01:00
Simon Sapin
19705b8213 Test warnings on syntax errors in style="".
Requires the latest patches to cssutils.
2011-12-20 17:11:25 +01:00
Simon Sapin
67d739b653 Catch-up with API changes in CairoSVG (again!) 2011-12-19 15:04:17 +01:00
Simon Sapin
b1b49bdb95 Fix a math error in the repeating counter type.
Does not currently matter as wa do not allow new counter styles,
and all pre-defined repeating style have only one symbol.
2011-12-19 10:06:58 +01:00
Simon Sapin
41c6547644 Speed up computed values by removing some indirection. 2011-12-16 18:28:34 +01:00
Simon Sapin
065a9a4f04 Do not 'compute' most initial values. 2011-12-16 17:53:11 +01:00
Simon Sapin
47074ae6f4 Inherit numbers on line-height, not the absolute value. 2011-12-16 17:31:37 +01:00
Simon Sapin
4186ed6c19 text-align: start should inherit as itself, not left or right. 2011-12-16 16:07:35 +01:00
Simon Sapin
a24dfa233c word-spacing: normal computing to 0 seems to be a mistake in CSS 2.1
CSS3 keeps normal as the computed value.
2011-12-16 15:52:53 +01:00
Simon Sapin
21b13c2714 Small code simplifications. 2011-12-16 15:41:49 +01:00
Simon Sapin
7c2a055ce7 Move parsing of the size property from computed_values to validation. 2011-12-16 15:06:59 +01:00
Simon Sapin
29388af63f Move backgroun-position parsing from draw to validation 2011-12-16 14:26:21 +01:00
Simon Sapin
7047e7de9b Simplify border-spacing 2011-12-16 13:44:25 +01:00
Simon Sapin
7d2742ebc1 Add and test more warnings. 2011-12-16 12:19:10 +01:00
Simon Sapin
304623b39a Fix and test invalid selectors warnings. 2011-12-16 11:48:40 +01:00
Simon Sapin
83aae169cb Test logged erros and warnings. 2011-12-16 11:19:56 +01:00
Simon Sapin
e0cb8e7c63 Compatibility with CairoSVG 0.2 2011-12-15 19:41:09 +01:00
Simon Sapin
53c1686941 Simplify implementation of color: currentColor (Use inheritance.) 2011-12-15 15:00:28 +01:00
Simon Sapin
e540e96dca Bug fix in the W3C test suite runner. 2011-12-14 18:45:06 +01:00
Simon Sapin
8a0195f558 Fix column group without column children. 2011-12-14 18:33:55 +01:00
Simon Sapin
51103b0a67 Test invalid images. 2011-12-14 17:57:05 +01:00
Simon Sapin
d93006ee41 Compatibility with CairoSVG 0.1.2 2011-12-14 16:39:38 +01:00
Simon Sapin
25b7cb2da6 Speedups for the W3 test suite. 2011-12-14 16:11:21 +01:00
Simon Sapin
9bdf0dfd39 Comments in counters.py 2011-12-14 14:27:49 +01:00
Simon Sapin
aac92d1c50 Bug fix when the root element is a table. 2011-12-14 12:48:05 +01:00
Simon Sapin
d535867700 Changelog for border styles. 2011-12-13 16:53:44 +01:00
Simon Sapin
3b4927b594 Implement all remaining border styles: inset, outset, ridge, groove. 2011-12-13 16:46:09 +01:00