Simon Sapin
|
f3855addd8
|
Basics for 'height: auto' on blocks.
|
2011-07-12 13:50:54 +02:00 |
|
Simon Sapin
|
2ffc9ab5d9
|
'line-height: normal' means 1.2 for now.
|
2011-07-12 13:50:09 +02:00 |
|
Simon Sapin
|
52a727ca44
|
Implement the size property in @page
|
2011-07-11 15:03:06 +02:00 |
|
Simon Sapin
|
76571e264f
|
Page boxes have no children; dont create them in formatting_structure.build
|
2011-07-11 12:47:00 +02:00 |
|
Salem Harrache
|
dc546b576e
|
fix font in test_text
|
2011-07-11 11:30:32 +02:00 |
|
Salem Harrache
|
efd9f4f5dd
|
add functions in TextLineFragment class
|
2011-07-10 14:06:22 +02:00 |
|
Salem Harrache
|
d7dfc38d03
|
Merge branch 'master' of gitorious.org:weasyprint/weasyprint
|
2011-07-08 18:15:14 +02:00 |
|
Salem Harrache
|
8e52e6081b
|
add new attributes in TextFragment
|
2011-07-08 18:15:07 +02:00 |
|
Simon Sapin
|
29558ad608
|
Test more cases.
|
2011-07-08 18:08:11 +02:00 |
|
Simon Sapin
|
b03d866be4
|
Handle width and margins for block-level in-flow boxes.
|
2011-07-07 17:33:44 +02:00 |
|
Simon Sapin
|
6594f8e9a1
|
Bug fix: expand shorthands in style attributes too.
|
2011-07-07 17:33:44 +02:00 |
|
Salem Harrache
|
71947abded
|
Merge branch 'master' of gitorious.org:weasyprint/weasyprint
|
2011-07-07 16:40:55 +02:00 |
|
Salem Harrache
|
8a7e9cbb31
|
change test concerning text dimension and font
|
2011-07-07 16:40:27 +02:00 |
|
Simon Sapin
|
bf72b9803f
|
Resolve all percentages.
|
2011-07-07 14:29:12 +02:00 |
|
Simon Sapin
|
742e4e0510
|
Pages are not so special after all.
|
2011-07-07 14:29:11 +02:00 |
|
Guillaume Ayoub
|
f32b8fecf9
|
Add a method to retrieve the containing block size of boxes
|
2011-07-07 14:27:46 +02:00 |
|
Salem Harrache
|
be24da82b0
|
validate test_line_dimension
|
2011-07-07 10:16:07 +02:00 |
|
Salem Harrache
|
32dac40fee
|
add test_text
|
2011-07-07 10:08:22 +02:00 |
|
Simon Sapin
|
68d705c0fa
|
The page box "is" the page area.
|
2011-07-05 17:40:37 +02:00 |
|
Simon Sapin
|
a0bc9459b3
|
Handle page margins and page area.
|
2011-07-05 15:02:18 +02:00 |
|
Simon Sapin
|
07c950ec8d
|
Test @page styles.
|
2011-07-05 11:32:16 +02:00 |
|
Salem Harrache
|
40753aaf41
|
add class WeasyText to get the read text area size
|
2011-07-02 12:27:13 +02:00 |
|
Simon Sapin
|
3de8c49190
|
Add page boxes.
|
2011-07-01 18:20:30 +02:00 |
|
Simon Sapin
|
f2ed585bea
|
Handle @page CSS rules.
|
2011-07-01 18:08:24 +02:00 |
|
Simon Sapin
|
36a62d7174
|
Add the framework for layout computations.
|
2011-06-29 22:43:18 +02:00 |
|
Simon Sapin
|
f5252d6e7d
|
Split box classes and box-building functions into a module each.
|
2011-06-29 21:59:29 +02:00 |
|
Simon Sapin
|
190c3b279c
|
Move the weasy.boxes module to weasy.formatting_structure.boxes
|
2011-06-29 15:01:36 +02:00 |
|
Simon Sapin
|
c7c831e950
|
Small optimization: avoid repeating getting the same value inside a loop.
|
2011-06-29 14:05:19 +02:00 |
|
Simon Sapin
|
8b1d0896ac
|
Remove trailing whitespace.
|
2011-06-29 14:04:42 +02:00 |
|
Simon Sapin
|
0bb06eec7a
|
Sanity check: assert that dimension values are numeric.
|
2011-06-29 11:07:48 +02:00 |
|
Simon Sapin
|
17534594c7
|
Change a test to cover more cases with inline-block.
|
2011-05-25 15:55:08 +02:00 |
|
Simon Sapin
|
22542f5490
|
Support boxes for replaced elements.
|
2011-05-25 15:54:46 +02:00 |
|
Simon Sapin
|
ae62358854
|
Use the new box classes as appropriate (ie. for inline-block.)
|
2011-05-25 15:27:30 +02:00 |
|
Simon Sapin
|
d971462153
|
Add box classes to propely represent eg. an inline-level block container
generated by an element with 'display: inline-block'
|
2011-05-25 14:59:42 +02:00 |
|
Simon Sapin
|
5993439034
|
Add tests for whitespace processing.
|
2011-05-23 17:53:59 +02:00 |
|
Simon Sapin
|
ef13a19d70
|
Make process_whitespace a separate step and also collapse spaces across tags.
|
2011-05-23 17:00:00 +02:00 |
|
Simon Sapin
|
8928011a79
|
Add the first step of whitespace processing.
|
2011-05-23 16:14:51 +02:00 |
|
Simon Sapin
|
e18d56ac4b
|
Tell to install our cssutils fork.
|
2011-05-23 15:06:50 +02:00 |
|
Simon Sapin
|
431a30355d
|
Add docstrings on box classes.
|
2011-05-23 14:31:14 +02:00 |
|
Simon Sapin
|
8268a4ff50
|
Boxes have style too.
|
2011-05-23 13:59:47 +02:00 |
|
Simon Sapin
|
043abbf633
|
Also return a numeric zero in StyleDict for 0 without units (eg. margin: 0)
|
2011-05-23 13:55:11 +02:00 |
|
Simon Sapin
|
f680992333
|
Also allow setting attributes on StyleDict objects.
|
2011-05-23 12:25:18 +02:00 |
|
Simon Sapin
|
12ef786248
|
Cleaner way to avoid having a line box directly in a line box.
|
2011-05-23 11:23:35 +02:00 |
|
Simon Sapin
|
69ae3b6648
|
Remove redundant styles in a test.
|
2011-05-23 11:22:13 +02:00 |
|
Simon Sapin
|
b1ebf04ede
|
Simplify details in computed_values.py
|
2011-05-20 17:26:55 +02:00 |
|
Simon Sapin
|
5c13f2940d
|
Prettier output for debugging.
|
2011-05-20 15:32:16 +02:00 |
|
Simon Sapin
|
06c029de8f
|
Cosmetic changes.
|
2011-05-20 12:12:25 +02:00 |
|
Guillaume Ayoub
|
3529bdd33e
|
Correct aglogrithm for boxes.block_in_inline()
|
2011-05-20 11:45:27 +02:00 |
|
Guillaume Ayoub
|
28eaa5770d
|
Try to manage blocks in inline boxes (work in progress)
|
2011-05-20 01:57:50 +02:00 |
|
Simon Sapin
|
4ac5d623a2
|
WIP: if an inline has a block child, pull the block up (see docstring)
|
2011-05-19 18:58:39 +02:00 |
|