|
|
@ -2,12 +2,11 @@ import cssutils |
|
|
|
|
|
|
|
|
|
|
|
SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html |
|
|
|
SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html |
|
|
|
|
|
|
|
|
|
|
|
macros = cssutils.profile._MACROS.copy() |
|
|
|
macros = { |
|
|
|
macros.update({ |
|
|
|
|
|
|
|
'paint': 'none|currentColor|{color}', |
|
|
|
'paint': 'none|currentColor|{color}', |
|
|
|
# spec actually says length, but our length macro requires units, so use positivenum |
|
|
|
# spec actually says length, but our length macro requires units, so use positivenum |
|
|
|
'dasharray': '{positivenum}(\s*,\s*{positivenum})*', |
|
|
|
'dasharray': '{positivenum}(\s*,\s*{positivenum})*', |
|
|
|
}) |
|
|
|
} |
|
|
|
properties = { |
|
|
|
properties = { |
|
|
|
'stroke': '{paint}', |
|
|
|
'stroke': '{paint}', |
|
|
|
'fill': '{paint}', |
|
|
|
'fill': '{paint}', |
|
|
|