Skip to content
Permalink
Browse files

Fix crash when using currentColor in gradients

  • Loading branch information...
liZe committed Sep 10, 2019
1 parent e7c452c commit fb0887cfd7971805955659b73f78b84881f98ad1
Showing with 3 additions and 0 deletions.
  1. +3 −0 weasyprint/css/utils.py
@@ -360,6 +360,9 @@ def parse_radial_gradient_parameters(arguments):
def parse_color_stop(tokens):
if len(tokens) == 1:
color = parse_color(tokens[0])
if color == 'currentColor':
# TODO: return the current color instead
return parse_color('black'), None
if color is not None:
return color, None
elif len(tokens) == 2:

0 comments on commit fb0887c

Please sign in to comment.
You can’t perform that action at this time.