Simon Sapin
|
fadb60c14f
|
Use strings or numbers instead of lists of cssutils Value objects.
... where appropriate. This remove much of the need for functions like
get_single_keyword and get_single_pixel_value.
|
2011-10-08 14:41:12 +02:00 |
|
Simon Sapin
|
ccf656ac1c
|
Remove now-unused Box.containing_block_size
|
2011-10-06 17:48:30 +02:00 |
|
Simon Sapin
|
7d0320afd5
|
Switch to UTF8 everywhere in text boxes instead of unicode.
|
2011-09-30 17:18:53 +02:00 |
|
Simon Sapin
|
a44a9b23d2
|
Use a shorter HTML stylesheet to speed up tests.
|
2011-09-29 19:04:08 +02:00 |
|
Simon Sapin
|
f07a580a49
|
Move sanity checks on formatting structure into tests.
|
2011-09-27 11:50:36 +02:00 |
|
Guillaume Ayoub
|
df9fcb334b
|
Test boxes sanity only for tests
|
2011-09-02 18:38:11 +02:00 |
|
Simon Sapin
|
ebbeaffa8f
|
Handle alt-text on images.
|
2011-08-25 17:33:44 +02:00 |
|
Guillaume Ayoub
|
33e0af85e7
|
Clean weasy/tests/test_boxes
|
2011-08-24 11:36:10 +02:00 |
|
Simon Sapin
|
0e4b110b1e
|
Very early support for pages breaking.
|
2011-08-22 18:14:37 +02:00 |
|
Simon Sapin
|
b74927afa4
|
Bug fix: properly build anonymous blocks when a block element is in an inline
|
2011-08-17 17:33:19 +02:00 |
|
Simon Sapin
|
a05825db1a
|
Make tests pass without warnings.
|
2011-08-17 15:02:15 +02:00 |
|
Simon Sapin
|
50f3044c34
|
Monkey-patch validation for tests that need unsupported values.
|
2011-08-16 16:02:50 +02:00 |
|
Simon Sapin
|
fc1bb2dd29
|
Apparently lxml.html already converts html entities.
|
2011-08-16 12:03:01 +02:00 |
|
Simon Sapin
|
eff67ab1a7
|
Remove css parsing/serializing in StyleDict.
|
2011-08-11 17:26:08 +02:00 |
|
Simon Sapin
|
d4267cf191
|
Get rid of the Document.do_* methods.
|
2011-08-05 16:19:22 +02:00 |
|
Simon Sapin
|
69156d98af
|
Have the document set its own attributes.
|
2011-07-21 13:47:42 +02:00 |
|
Simon Sapin
|
0343b8fef3
|
Remove unused imports.
|
2011-07-21 13:31:42 +02:00 |
|
Simon Sapin
|
935b6e9b89
|
Put styles in a signle Document object instead of each lxml element.
|
2011-07-20 18:23:54 +02:00 |
|
Simon Sapin
|
7fa2206fe1
|
Add Document objects to hold ... well, everything.
|
2011-07-20 15:41:44 +02:00 |
|
Simon Sapin
|
f7f5359d8f
|
Make box.children a deque, make box.copy() more efficient,
rework algorithm for block_in_inline.
|
2011-07-20 11:35:43 +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 |
|
Guillaume Ayoub
|
f32b8fecf9
|
Add a method to retrieve the containing block size of boxes
|
2011-07-07 14:27:46 +02:00 |
|
Simon Sapin
|
07c950ec8d
|
Test @page styles.
|
2011-07-05 11:32:16 +02:00 |
|
Simon Sapin
|
3de8c49190
|
Add page boxes.
|
2011-07-01 18:20:30 +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
|
8b1d0896ac
|
Remove trailing whitespace.
|
2011-06-29 14:04:42 +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
|
8268a4ff50
|
Boxes have style too.
|
2011-05-23 13:59:47 +02:00 |
|
Simon Sapin
|
69ae3b6648
|
Remove redundant styles in a test.
|
2011-05-23 11:22:13 +02:00 |
|
Simon Sapin
|
5c13f2940d
|
Prettier output for debugging.
|
2011-05-20 15:32:16 +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
|
531c8ec669
|
Add a 'boxes' module. (Empty for now.)
|
2011-05-17 11:29:00 +02:00 |
|