Simon Sapin
3f79655940
Add untest support for linear gradients.
2013-04-05 12:23:29 +02:00
Simon Sapin
d53f091b17
Prepare for multiple background-image types.
2013-04-05 12:23:29 +02:00
Simon Sapin
e4273872ac
Convert angles to radians as soon as parsing.
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
Guillaume Ayoub
9f18ce63c3
Handle ex and ch units
2013-04-04 02:38:39 +02:00
Simon Sapin
171438f48e
2013
2013-04-03 16:23:48 +02:00
Simon Sapin
2dfc39ccc6
Negative font-size is invalid.
2013-04-02 18:32:15 +02:00
Simon Sapin
cef113c5a7
Add background-repeat: round
2013-03-30 23:43:19 +01:00
Simon Sapin
b5de53169c
Add backgroun-repeat: space
2013-03-30 22:49:47 +01:00
Simon Sapin
4265b4115a
Add syntax for two keywords in background-repeat.
2013-03-26 12:04:00 +01:00
Simon Sapin
3d4c94acdc
Prepare for L3 background-repeat.
2013-03-25 19:40:27 +01:00
Simon Sapin
055203cd97
Parse background-size in the background shorthand.
2013-03-25 19:05:04 +01:00
Simon Sapin
35b3c1ad8d
Upgrade background-position to Level 3.
2013-03-25 18:59:18 +01:00
Simon Sapin
e4f68e2b27
Prepare background-position internals for Level 3 syntax.
2013-03-21 15:46:07 +01:00
Simon Sapin
c8bd3a3782
Allow percentages in background-size.
2013-03-21 12:53:53 +01:00
Simon Sapin
92b2045ed7
The background shorthands accepts values for -clip and -origin.
2013-03-20 16:19:26 +01:00
Simon Sapin
7a4faac087
Add background-attachement: local
, same as scroll.
...
Since we have no scrolling mechanism,
local and scroll are treated the same.
2013-03-20 13:34:13 +01:00
Simon Sapin
1616e37259
Upgrade the background shorthand for multiple layers.
2013-03-20 13:19:48 +01:00
Simon Sapin
911ed43169
Add support for multiple backgrounds (except for the shorthand.)
2013-03-19 18:29:58 +01:00
Simon Sapin
4c04bcd1a9
Fix URL escaping of image references from CSS.
2013-03-18 12:09:57 +01:00
Guillaume Ayoub
158d4cf2a1
Prefix 'hyphens' in the user agent stylesheet
2013-03-14 18:11:58 +01:00
Simon Sapin
c49f060c9f
Add support for -weasy-hyphens: none, cache hyphenation dictionaries
2013-02-27 13:44:57 +01:00
Simon Sapin
b7ed4a906f
Tweak hyphenation and add a micro-test.
2013-02-26 19:45:00 +01:00
Simon Sapin
43489dec07
Merge branch 'master' into hyphenation
...
Conflicts:
weasyprint/text.py
2013-02-26 18:16:59 +01:00
Simon Sapin
d310ffe47d
Merge branch 'cffi'
...
Conflicts:
weasyprint/text.py
2013-02-25 15:23:59 +01:00
Simon Sapin
9b7c681d27
cairocffi is released, remove the tarball from tox.ini
2013-02-25 14:53:30 +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
Guillaume Ayoub
c52a17a3f0
Set the computed value of the "hyphens" property instead of the keyword
2012-12-26 16:56:48 +01:00
Guillaume Ayoub
667f1d905b
Quick and dirty lang detection for hyphenation
2012-12-09 00:41:12 +01:00
Guillaume Ayoub
fbc2e33b01
Add the -weasy-hyphens CSS property
2012-12-08 22:50:08 +01:00
Guillaume Ayoub
2325b4c2f4
Give the line length to split_first_line
2012-11-24 16:14:49 +01:00
Simon Sapin
6f56613441
Do not require HtmlElement.
...
* Do not use element.base_url which only exists in lxml.html.HtmlElement
* Use lxml.etree.HtmlParser instead of lxml.html
This is one step toward using the html5lib parser, but see
https://github.com/Kozea/WeasyPrint/pull/12
2012-11-06 13:55:39 +01:00
Simon Sapin
ba987f0daf
Remove out-dated parts of the weasyprint.css docstring.
2012-10-09 17:10:45 +02:00
Simon Sapin
c2b2b8c2ea
Escape non-ASCII characters in hyperlinks.
2012-10-04 19:12:34 +02:00
Simon Sapin
f33c91742d
Get rid of the Document class (finally!)
2012-09-25 16:37:18 +02:00
Simon Sapin
7984fbd3bc
Warn (not crash) on missing base_url for @import
2012-09-25 16:01:12 +02:00
Simon Sapin
9834ccb7e6
Handle all of backgrounds at the end of layout.
2012-09-13 11:19:40 +02:00
Simon Sapin
ae26c87bfd
Handle background images at the end of layout
2012-09-13 10:41:22 +02:00
Simon Sapin
463a33c1af
Fetch background images early
...
This removes the need to have a reference to the image cache
in draw.py
2012-09-12 18:36:00 +02:00
Guillaume Ayoub
50210b266f
Add support for @page:blank pseudo-class
2012-08-24 00:05:28 +02:00
Simon Sapin
39b553fae7
Add support for font-stretch, fix #7
...
The value is passed to Pango as-is. It may have no effect if
(for example) the chosen font has no expanded variant.
2012-08-17 17:37:33 +02:00
Simon Sapin
ba8a55d5c0
Add support for outlines.
2012-08-03 16:22:32 +02:00
Simon Sapin
ec8cbc6c24
Remove one-line methods in Document.
2012-08-03 11:51:58 +02:00
Simon Sapin
1864d3365a
s/medium/media_type/ s/user_agent_stylesheets/ua_stylesheets/
2012-08-02 13:04:31 +02:00
Chung Wu
a51562149c
Can specify the @media medium to use (defaults to print)
2012-08-01 19:09:48 -07: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
d038708b8b
Kill Document in css/__init__.py
2012-07-12 15:21:37 +02:00
Simon Sapin
1deb3c3b43
Add border conflict resolution for border-collapse
...
(No layout or painting yet.)
2012-07-11 14:11:26 +02:00