From 6b8d32a5011ac68a60cc69f4f35e7c085a1ba13c Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 13 Jun 2013 16:55:40 +0200 Subject: [PATCH] Don't validate the lengths in border-radius twice --- weasyprint/css/validation.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weasyprint/css/validation.py b/weasyprint/css/validation.py index deea226d..8d82f673 100644 --- a/weasyprint/css/validation.py +++ b/weasyprint/css/validation.py @@ -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[:]