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:
parent
8463ba0c46
commit
6b8d32a501
@ -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[:]
|
||||
|
Loading…
Reference in New Issue
Block a user