Simon Sapin
1d1bf9cdc9
Flake8.
2013-04-11 12:08:53 +02:00
Simon Sapin
3ca71a6bed
Gradients (still untested), handle pathological cases.
2013-04-11 10:39:47 +02:00
Simon Sapin
d53f091b17
Prepare for multiple background-image types.
2013-04-05 12:23:29 +02:00
Simon Sapin
6bcc6edc0f
Clean up ex/ch, add a test.
2013-04-05 12:22:28 +02:00
Guillaume Ayoub
50ac168b94
Clean code and fix tests
2013-04-04 04:39:25 +02:00
Simon Sapin
171438f48e
2013
2013-04-03 16:23:48 +02:00
Simon Sapin
911ed43169
Add support for multiple backgrounds (except for the shorthand.)
2013-03-19 18:29:58 +01:00
Simon Sapin
829c758788
Keep currentColor as a computed value, resolve in used value
...
According to the css3-color errata:
http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html
2013-01-23 16:52:47 +01:00
Simon Sapin
09ff532828
The Document is back! (But different.)
2012-10-02 18:59:02 +02:00
Simon Sapin
f33c91742d
Get rid of the Document class (finally!)
2012-09-25 16:37:18 +02:00
Simon Sapin
d1971b6e63
Remove unused imports.
2012-08-03 13:32:42 +02:00
Simon Sapin
4abf401f9e
Simplify Document and remove magic properties.
2012-08-03 13:00:14 +02:00
Simon Sapin
f4e6de438f
Remove/adapt tests using Document.formatting_structure
2012-08-03 12:11:34 +02:00
Simon Sapin
1864d3365a
s/medium/media_type/ s/user_agent_stylesheets/ua_stylesheets/
2012-08-02 13:04:31 +02:00
Simon Sapin
c39d4119c8
Fix MIME type registering: always use native strings.
2012-07-29 15:13:45 +02:00
Simon Sapin
96748be086
Gotta learn to run *all* tests before pushing.
2012-07-27 18:08:05 +02:00
Simon Sapin
6be1d8b7f4
Fix some tests on Windows ... maybe?
2012-07-27 17:52:35 +02:00
Simon Sapin
4a6fff4384
Make mime_type optional in custom URL fetchers
2012-07-18 14:34:43 +02:00
Simon Sapin
5a779f49dc
Fix relative stylesheet URL without a base URL.
...
Previously we passed url=None to CSS which failed with
a "zero source" exception.
2012-07-17 15:23:58 +02:00
Simon Sapin
a0cf7c7617
Test url_fetcher, make it work on stylesheets
2012-07-13 13:21:59 +02:00
Simon Sapin
2768dea548
Add `url_fetcher
` to the public API
2012-07-13 12:24:55 +02:00
Simon Sapin
d038708b8b
Kill Document in css/__init__.py
2012-07-12 15:21:37 +02:00
Guillaume Ayoub
85df2ebe47
Fix the struts and heights of line/inline boxes. (For real this time. Maybe.)
2012-06-08 17:13:45 +02:00
Simon Sapin
14dc5e7aff
Make urlopen() extensible
...
There is a global dict mapping URI schemes to opener functions,
and a decorator to add such a function.
Expected usage:
from weasyprint.urls import register_opener
@register_opener('foo')
def git_urlopen(url):
url = urlparse.urlsplit(url)
assert url.scheme == 'foo'
# ...
return fileobj, mimetype, charset
2012-05-23 15:13:57 +02:00
Simon Sapin
d694a98350
Rename the utils module to 'urls'
2012-05-23 15:13:57 +02:00
Simon Sapin
b6ea3821b8
Remove unused imports
2012-05-22 16:34:41 +02:00
Simon Sapin
61dc177573
Refactor the PNG/PDF differences into a new 'backends' module.
2012-05-22 16:19:09 +02:00
Simon Sapin
0a164aa1fc
Use the new cssselect.
2012-04-27 10:58:15 +02:00
Guillaume Ayoub
af7605cce8
Fix the test for tinycss warnings
2012-04-05 20:15:28 +02:00
Simon Sapin
f6b202fa5f
tinycss changes + a few more tests
2012-04-05 16:31:32 +02:00
Simon Sapin
88c027117c
Do not keep tokens for percentages after validation.
...
Make (value, unit) namedtuples instead.
Pixel values that could be percentages are not plain numbers anymore.
2012-04-03 16:12:25 +02:00
Simon Sapin
46b1d225c7
Tests n’ fixes. Lots of them.
2012-04-03 11:34:29 +02:00
Simon Sapin
ad3cdf5dae
tinycss again
2012-03-31 18:22:55 +02:00
Simon Sapin
fb37336f7a
Catch up with tinycss changes.
2012-03-28 18:42:47 +02:00
Simon Sapin
1446fccb33
Also pre-proccess @import and @media
2012-03-25 01:41:02 +01:00
Simon Sapin
52b6124e2e
Pre-process stylesheet (do validation just after parsing)
2012-03-25 00:39:41 +01:00
Simon Sapin
96feb96574
Switch from cssutils to tinycss as the CSS parser
2012-03-24 21:32:15 +01:00
Simon Sapin
dcacf9eed0
Switch the licence to BSD and rewrite module docstrings/headers
2012-03-21 23:26:58 +01:00
Simon Sapin
26de362b99
Add proper attribution in AUTHORS
2012-03-21 18:40:38 +01:00
Simon Sapin
9875f76995
Hello 2012
2012-03-21 18:40:38 +01:00
Simon Sapin
c521322ee7
Fix base64 URLs without padding
2012-03-21 16:07:49 +01:00
Guillaume Ayoub
016befd1af
Handle the combined selectors with pseudo-elements
2012-02-27 17:55:27 +01:00
Simon Sapin
f0e79cf99a
Cleanups
2012-02-23 19:31:15 +01:00
Simon Sapin
a412924e92
Fix the test suite on pytest
...
(Do not swallow all exceptions!)
2012-02-21 12:59:06 +01:00
Simon Sapin
dc5360e130
Python 2.6 compat, fix tox.ini
2012-02-20 15:36:55 +01:00
Simon Sapin
4bf9b2dce7
Switch to pytest
2012-02-20 13:04:35 +01:00
Simon Sapin
ff135aa285
Python 3 compat. All tests pass with the same code base!
2012-02-17 22:48:20 +01:00
Simon Sapin
9cd1ac746d
*Break the API*
...
The new API should be easier to use. Only what is directly
in the 'weasyprint' module (not in a sub-module) is public.
2012-02-15 18:49:37 +01:00
Simon Sapin
cf52aa3aaf
Move the whole 'weasy' package to 'weasyprint'
2012-02-14 12:49:33 +01:00