From 0b219bf8cba354ced8f97a12b5f78e6a720f005f Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 20 Jun 2013 14:51:33 -0700 Subject: [PATCH] theme-node: fix support for box-shadow: none We currently don't parse "box-shadow: none", despite being valid CSS. Fix it so that it uses the default shadow values. https://bugzilla.gnome.org/show_bug.cgi?id=702782 --- src/st/st-theme-node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index e4eddcfb8..5250e8ac7 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -3056,6 +3056,10 @@ parse_shadow_property (StThemeNode *node, */ for (term = decl->value; term; term = term->next) { + /* if we found "none", we're all set with the default values */ + if (term_is_none (term)) + return VALUE_FOUND; + if (term->type == TERM_NUMBER) { gdouble value;