mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 22:01:57 +03:00
fix specificity for pseudo elements
Fix specificity for pseudo-elements with one semi-colon, for example :after
This commit is contained in:
parent
91f37b6365
commit
92c465f81a
@ -248,8 +248,13 @@ void mycss_selectors_parser_selector_pseudo_class(mycss_entry_t* entry, mycss_to
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (selector->type == MyCSS_SELECTORS_TYPE_PSEUDO_ELEMENT) {
|
||||||
|
if(entry->selectors->specificity)
|
||||||
|
entry->selectors->specificity->c++;
|
||||||
|
} else {
|
||||||
if(entry->selectors->specificity)
|
if(entry->selectors->specificity)
|
||||||
entry->selectors->specificity->b++;
|
entry->selectors->specificity->b++;
|
||||||
|
}
|
||||||
|
|
||||||
mycss_selectors_parser_check_and_set_bad_parent_selector(entry, entry->selectors->list_last);
|
mycss_selectors_parser_check_and_set_bad_parent_selector(entry, entry->selectors->list_last);
|
||||||
mycss_selectors_parser_selector_end(entry, token);
|
mycss_selectors_parser_selector_end(entry, token);
|
||||||
|
Loading…
Reference in New Issue
Block a user