summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stylesheet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index 71aee9c..ac7dcd5 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -575,6 +575,9 @@ css_error css_stylesheet_selector_combine(css_stylesheet *sheet,
b->combinator = a;
b->data.comb = type;
+ /* And propagate A's specificity to B */
+ b->specificity += a->specificity;
+
return CSS_OK;
}