From 39493b5635f8e78f37157be2f6b6d5941ec958ac Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 31 Jan 2011 22:30:51 +0000 Subject: Fix specificity calculation for prefix, suffix, and substring attribute selectors. Fix dumping of these selectors when debugging selector chains svn path=/trunk/libcss/; revision=11569 --- src/stylesheet.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/stylesheet.c') diff --git a/src/stylesheet.c b/src/stylesheet.c index 42b5820..d8c3113 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -971,6 +971,9 @@ css_error css__stylesheet_selector_append_specific(css_stylesheet *sheet, case CSS_SELECTOR_ATTRIBUTE_EQUAL: case CSS_SELECTOR_ATTRIBUTE_DASHMATCH: case CSS_SELECTOR_ATTRIBUTE_INCLUDES: + case CSS_SELECTOR_ATTRIBUTE_PREFIX: + case CSS_SELECTOR_ATTRIBUTE_SUFFIX: + case CSS_SELECTOR_ATTRIBUTE_SUBSTRING: (*parent)->specificity += CSS_SPECIFICITY_C; break; case CSS_SELECTOR_ID: -- cgit v1.2.3