diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c index 71247c0cc3..96f010adbf 100644 --- a/gtk/gtkcssselector.c +++ b/gtk/gtkcssselector.c @@ -187,14 +187,6 @@ parse_selector_pseudo_class (GtkCssParser *parser, { if (g_ascii_strcasecmp (name, classes[i].name) == 0) { - if ((*region_to_modify & classes[i].region_flag) || - (*state_to_modify & classes[i].state_flag)) - { - if (classes == nth_child_classes) - _gtk_css_parser_error (parser, "Duplicate pseudo-class 'nth-child(%s)'", name); - else - _gtk_css_parser_error (parser, "Duplicate pseudo-class '%s'", name); - } *region_to_modify |= classes[i].region_flag; *state_to_modify |= classes[i].state_flag; diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index 44bf32ae18..af82581a38 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -296,7 +296,6 @@ EXTRA_DIST += \ pseudo-classes-unknown.errors \ pseudo-classes-unknown.ref.css \ selector.css \ - selector.errors \ selector.ref.css \ shorthand.css \ shorthand.ref.css \ diff --git a/tests/css/parser/selector.errors b/tests/css/parser/selector.errors deleted file mode 100644 index 42cc16e1d3..0000000000 --- a/tests/css/parser/selector.errors +++ /dev/null @@ -1 +0,0 @@ -selector.css:201: error: GTK_CSS_PROVIDER_ERROR_SYNTAX diff --git a/tests/css/parser/selector.ref.css b/tests/css/parser/selector.ref.css index 37ba16addb..e982145719 100644 --- a/tests/css/parser/selector.ref.css +++ b/tests/css/parser/selector.ref.css @@ -86,10 +86,6 @@ a > b { int-property: 42; } -:hover { - int-property: 42; -} - a.b { int-property: 42; } @@ -166,6 +162,10 @@ a > :hover { int-property: 42; } +:hover:hover { + int-property: 42; +} + :hover :hover { int-property: 42; }