diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index b3d5f5f0ea..84a24225d5 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -68,4 +68,6 @@ EXTRA_DIST += \ integer.ref.css \ no-semicolon.css \ no-semicolon.ref.css \ + selector.css \ + selector.ref.css \ simple.css diff --git a/tests/css/parser/selector.css b/tests/css/parser/selector.css new file mode 100644 index 0000000000..46ac9ca8c4 --- /dev/null +++ b/tests/css/parser/selector.css @@ -0,0 +1,280 @@ +* { + int-property: 42; +} + +* * { + int-property: 42; +} + +* > * { + int-property: 42; +} + +* b { + int-property: 42; +} + +* > b { + int-property: 42; +} + +*.b { + int-property: 42; +} + +* .b { + int-property: 42; +} + +* > .b { + int-property: 42; +} + +*:hover { + int-property: 42; +} + +* :hover { + int-property: 42; +} + +* > :hover { + int-property: 42; +} + +*#b { + int-property: 42; +} + +* #b { + int-property: 42; +} + +* > #b { + int-property: 42; +} + +a { + int-property: 42; +} + +a * { + int-property: 42; +} + +a > * { + int-property: 42; +} + +a b { + int-property: 42; +} + +a > b { + int-property: 42; +} + +a.b { + int-property: 42; +} + +a .b { + int-property: 42; +} + +a > .b { + int-property: 42; +} + +a:hover { + int-property: 42; +} + +a :hover { + int-property: 42; +} + +a > :hover { + int-property: 42; +} + +a#b { + int-property: 42; +} + +a #b { + int-property: 42; +} + +a > #b { + int-property: 42; +} + +.a { + int-property: 42; +} + +.a * { + int-property: 42; +} + +.a > * { + int-property: 42; +} + +.a b { + int-property: 42; +} + +.a > b { + int-property: 42; +} + +.a.b { + int-property: 42; +} + +.a .b { + int-property: 42; +} + +.a > .b { + int-property: 42; +} + +.a:hover { + int-property: 42; +} + +.a :hover { + int-property: 42; +} + +.a > :hover { + int-property: 42; +} + +.a#b { + int-property: 42; +} + +.a #b { + int-property: 42; +} + +.a > #b { + int-property: 42; +} + +:hover { + int-property: 42; +} + +:hover * { + int-property: 42; +} + +:hover > * { + int-property: 42; +} + +:hover b { + int-property: 42; +} + +:hover > b { + int-property: 42; +} + +:hover.b { + int-property: 42; +} + +:hover .b { + int-property: 42; +} + +:hover > .b { + int-property: 42; +} + +:hover:hover { + int-property: 42; +} + +:hover :hover { + int-property: 42; +} + +:hover > :hover { + int-property: 42; +} + +:hover#b { + int-property: 42; +} + +:hover #b { + int-property: 42; +} + +:hover > #b { + int-property: 42; +} + +#a { + int-property: 42; +} + +#a * { + int-property: 42; +} + +#a > * { + int-property: 42; +} + +#a b { + int-property: 42; +} + +#a > b { + int-property: 42; +} + +#a.b { + int-property: 42; +} + +#a .b { + int-property: 42; +} + +#a > .b { + int-property: 42; +} + +#a:hover { + int-property: 42; +} + +#a :hover { + int-property: 42; +} + +#a > :hover { + int-property: 42; +} + +#a#b { + int-property: 42; +} + +#a #b { + int-property: 42; +} + +#a > #b { + int-property: 42; +} + diff --git a/tests/css/parser/selector.errors b/tests/css/parser/selector.errors new file mode 100644 index 0000000000..42cc16e1d3 --- /dev/null +++ b/tests/css/parser/selector.errors @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000000..37ba16addb --- /dev/null +++ b/tests/css/parser/selector.ref.css @@ -0,0 +1,279 @@ +* { + int-property: 42; +} + +* * { + int-property: 42; +} + +* > * { + int-property: 42; +} + +* b { + int-property: 42; +} + +* > b { + int-property: 42; +} + +a { + int-property: 42; +} + +a * { + int-property: 42; +} + +a > * { + int-property: 42; +} + +a b { + int-property: 42; +} + +a > b { + int-property: 42; +} + +.b { + int-property: 42; +} + +* .b { + int-property: 42; +} + +* > .b { + int-property: 42; +} + +:hover { + int-property: 42; +} + +* :hover { + int-property: 42; +} + +* > :hover { + int-property: 42; +} + +.a { + int-property: 42; +} + +.a * { + int-property: 42; +} + +.a > * { + int-property: 42; +} + +:hover { + int-property: 42; +} + +:hover * { + int-property: 42; +} + +:hover > * { + int-property: 42; +} + +:hover { + int-property: 42; +} + +a.b { + int-property: 42; +} + +a .b { + int-property: 42; +} + +a > .b { + int-property: 42; +} + +a:hover { + int-property: 42; +} + +a :hover { + int-property: 42; +} + +a > :hover { + int-property: 42; +} + +.a b { + int-property: 42; +} + +.a > b { + int-property: 42; +} + +:hover b { + int-property: 42; +} + +:hover > b { + int-property: 42; +} + +.a.b { + int-property: 42; +} + +.a .b { + int-property: 42; +} + +.a > .b { + int-property: 42; +} + +.a:hover { + int-property: 42; +} + +.a :hover { + int-property: 42; +} + +.a > :hover { + int-property: 42; +} + +.b:hover { + int-property: 42; +} + +:hover .b { + int-property: 42; +} + +:hover > .b { + int-property: 42; +} + +:hover :hover { + int-property: 42; +} + +:hover > :hover { + int-property: 42; +} + +#b { + int-property: 42; +} + +* #b { + int-property: 42; +} + +* > #b { + int-property: 42; +} + +#a { + int-property: 42; +} + +#a * { + int-property: 42; +} + +#a > * { + int-property: 42; +} + +a#b { + int-property: 42; +} + +a #b { + int-property: 42; +} + +a > #b { + int-property: 42; +} + +#a b { + int-property: 42; +} + +#a > b { + int-property: 42; +} + +#b.a { + int-property: 42; +} + +.a #b { + int-property: 42; +} + +.a > #b { + int-property: 42; +} + +#b:hover { + int-property: 42; +} + +:hover #b { + int-property: 42; +} + +:hover > #b { + int-property: 42; +} + +#a.b { + int-property: 42; +} + +#a .b { + int-property: 42; +} + +#a > .b { + int-property: 42; +} + +#a:hover { + int-property: 42; +} + +#a :hover { + int-property: 42; +} + +#a > :hover { + int-property: 42; +} + +#a#b { + int-property: 42; +} + +#a #b { + int-property: 42; +} + +#a > #b { + int-property: 42; +}