diff options
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index 2091c1a..9d6f877 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -626,10 +626,14 @@ void css_stylesheet_dump_selector(css_selector *selector, FILE *target) switch (selector->type) { case CSS_SELECTOR_ELEMENT: - if (selector->specifics != NULL && - (selector->data.name.len != 1 || - selector->data.name.ptr[0] != '*')) { - css_stylesheet_dump_string(&selector->data.name, + if (selector->data.name.len == 1 && + selector->data.name.ptr[0] == '*' && + selector->specifics == NULL) { + css_stylesheet_dump_string(&selector->data.name, + target); + } else if (selector->data.name.len != 1 || + selector->data.name.ptr[0] != '*') { + css_stylesheet_dump_string(&selector->data.name, target); } break; |