Simon Sapin
af28de57ff
Iterate on FireWeasy.
2012-01-25 20:30:15 +01:00
Simon Sapin
6b78c33622
First stab at FireWeasy.
...
The idea is to render the box tree in a browser instead of cairo,
so that tools like FireBug can be used to see the actual
dimensions of various boxes to help debug documents.
2012-01-25 19:06:33 +01:00
Simon Sapin
d5c0fd22f9
Refactor margin boxes layout to use box wrappers.
2012-01-23 14:07:53 +01:00
Simon Sapin
5cfcdf29cc
More cases for margin boxes variable dimension.
2012-01-23 13:40:35 +01:00
Simon Sapin
461ab52bd5
Implement page-break-before and page-break-after (without 'avoid').
2012-01-20 11:55:06 +01:00
Simon Sapin
604219e376
Catch up with CairoSVG API changes.
2012-01-19 17:11:40 +01:00
Simon Sapin
c3085d5088
Better work-around for scaling SVG images to pixels.
2012-01-17 16:27:20 +01:00
Simon Sapin
cce61078e2
Implement page-based counters.
...
Currently in the page context only the 'page' and 'pages' counters are
available, and counter-reset and counter-increment have no effect at all.
2012-01-17 15:58:02 +01:00
Simon Sapin
34252ee571
Fix some values of background-position.
...
When both values were keywords in the (vertical, horizontal) order,
they were taken in the wrong order.
2012-01-16 14:00:30 +01:00
Simon Sapin
fe3dd10ea0
Add tests and fixes for non-ASCII URLs
2012-01-16 13:12:27 +01:00
Simon Sapin
561028eee5
Fix tests with SVG images, require a new CairoSVG version.
2012-01-16 11:39:02 +01:00
Simon Sapin
d184eb26bd
Fix SVG dimensions.
2012-01-13 18:16:27 +01:00
Simon Sapin
2ebfde0ba7
Implement more cases for variable dimension.
2012-01-12 19:28:08 +01:00
Simon Sapin
4c4123af91
Correct scaling of SVG images.
2012-01-12 19:28:08 +01:00
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