summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-08-12 10:17:27 +0200
committerGitHub <noreply@github.com>2023-08-12 10:17:27 +0200
commitbc4017514711a274258317f1b91972f8dd53815e (patch)
tree7982e194832df2b7b882f63992b6fa19d9875ab7
parent98f9fedfea8b272d67c209951f31d39a949b8aa4 (diff)
render context-stroke and context-fill as black (#2470)
-rw-r--r--lib/threads/color.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/threads/color.py b/lib/threads/color.py
index c75778d2..44fa709c 100644
--- a/lib/threads/color.py
+++ b/lib/threads/color.py
@@ -17,10 +17,10 @@ class ThreadColor(object):
'''
avoid error messages:
* set colors with a gradient to black
- * currentColor should not just be black, but we want to avoid error messages
- until inkex will be able to handle this css property
+ * currentColor/context-fill/context-stroke: should not just be black, but we want to avoid
+ error messages until inkex will be able to handle these css properties
'''
- if type(color) == str and color.startswith(('url', 'currentColor')):
+ if type(color) == str and color.startswith(('url', 'currentColor', 'context')):
color = None
elif type(color) == str and color.startswith('rgb'):
color = tuple(int(value) for value in color[4:-1].split(','))