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

Don't allow 'hidden' value for 'outline-style' property

This commit is contained in:
Guillaume Ayoub 2013-04-10 19:18:46 +02:00
parent 3ee0e4f279
commit 8e6df93709

View File

@ -483,7 +483,6 @@ def border_spacing(tokens):
@validator('border-right-style')
@validator('border-left-style')
@validator('border-bottom-style')
@validator('outline-style')
@single_keyword
def border_style(keyword):
"""``border-*-style`` properties validation."""
@ -491,6 +490,14 @@ def border_style(keyword):
'inset', 'outset', 'groove', 'ridge', 'solid')
@validator('outline-style')
@single_keyword
def outline_style(keyword):
"""``outline-style`` properties validation."""
return keyword in ('none', 'dotted', 'dashed', 'double', 'inset',
'outset', 'groove', 'ridge', 'solid')
@validator('border-top-width')
@validator('border-right-width')
@validator('border-left-width')