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
|
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 |
|
Simon Sapin
|
bd640af3bb
|
Make boxes.inline_in_block() idempotent.
|
2011-05-19 18:22:06 +02:00 |
|
Simon Sapin
|
5c5f7b7241
|
If a block has block children, wrap all non-block children
in anonymous blocks and lines.
|
2011-05-19 16:03:50 +02:00 |
|
Simon Sapin
|
6d62b8c085
|
Let’s start with a dumb box model.
|
2011-05-19 15:40:17 +02:00 |
|
Simon Sapin
|
e4716db0c7
|
Test that the default stylesheet is applied.
|
2011-05-19 14:57:41 +02:00 |
|
Simon Sapin
|
531c8ec669
|
Add a 'boxes' module. (Empty for now.)
|
2011-05-17 11:29:00 +02:00 |
|
Simon Sapin
|
2648ab7298
|
Make StyleDict return the numeric value for attribut access to pixel lengths.
|
2011-05-17 09:38:01 +02:00 |
|
Simon Sapin
|
3a3074c335
|
Allow attribute access on 'style' dicts.
|
2011-05-16 18:33:56 +02:00 |
|
Simon Sapin
|
462af845cf
|
Bug fix: make sure we iterate on lists, not None.
|
2011-05-16 18:29:26 +02:00 |
|
Simon Sapin
|
8534d7892b
|
Avoid not implemented shorthands in the HTML4 default stylesheet.
|
2011-05-16 18:28:42 +02:00 |
|
Simon Sapin
|
8fd543134a
|
Make DummyPropertyValue lists instead of using get_value. (And remove get_value)
|
2011-05-16 11:34:34 +02:00 |
|
Simon Sapin
|
4f3b1d90f3
|
Prefix test module names with 'test_', even if it’s redundant.
|
2011-05-16 10:32:58 +02:00 |
|
Simon Sapin
|
de46c57393
|
Do not make links absolute in the tree.
content: attr(href) should be as in the source.
|
2011-05-13 17:25:49 +02:00 |
|
Simon Sapin
|
7eb8215d55
|
Computed values for the 'content' property.
|
2011-05-12 17:39:05 +02:00 |
|
Simon Sapin
|
5e3d4299f3
|
Computed values for the 'content' property ... almost.
|
2011-05-12 16:48:37 +02:00 |
|
Simon Sapin
|
ce31735343
|
Add a pseudo_element_type attribute in PseudoElement objects.
|
2011-05-12 16:47:18 +02:00 |
|
Simon Sapin
|
a111cce723
|
Add support for pseudo-elements.
|
2011-05-12 16:06:47 +02:00 |
|
Simon Sapin
|
92112b049e
|
Add an empty applicable_properties list to all elements up-front
instead of adding it when it does not exist.
This also resets these lists if the same document is used more than once.
|
2011-05-12 15:37:53 +02:00 |
|
Simon Sapin
|
7045173862
|
Turn two nested if into one.
|
2011-05-10 15:13:00 +02:00 |
|