1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Don't validate the lengths in border-radius twice

This commit is contained in:
Guillaume Ayoub 2013-06-13 16:55:40 +02:00
parent 8463ba0c46
commit 6b8d32a501

View File

@ -1343,11 +1343,7 @@ def border_radius(base_url, name, tokens):
else:
raise InvalidValues('Expected only one "/" separator')
else:
length = get_length(token, negative=False, percentage=True)
if length is None:
raise InvalidValues('Expected length, got %s' % token.as_css())
else:
current.append(length)
current.append(token)
if not vertical:
vertical = horizontal[:]