summaryrefslogtreecommitdiff
path: root/src/parse/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties.c')
-rw-r--r--src/parse/properties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index de30f07..e3133c1 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -4076,6 +4076,10 @@ css_error parse_outline_style(css_language *c,
flags = getFlags(opv);
value = getValue(opv) & ~SIDE_LEFT;
+ /* Hidden is invalid */
+ if (value == BORDER_STYLE_HIDDEN)
+ return CSS_INVALID;
+
opv = buildOPV(OP_OUTLINE_STYLE, flags, value);
*((uint32_t *) (*result)->bytecode) = opv;