gtk2/tests/reftests/css-match-descendant-later.css
Benjamin Otte f3ed498c5b reftests: Add a test for descendant CSS selectors match
In widget hierarchy like "Foo Bar Bar Baz", we want the selector "Foo >
Bar Baz" to match, because it matches the elements 1, 2 and 4.
Previously, the selector only matches the Bar at position 3 and then
failed because it wasn't preceded by a Foo.
2011-05-18 22:17:56 +02:00

12 lines
152 B
CSS

GtkEventBox {
background-color: blue
}
GtkGrid GtkEventBox {
background-color: red
}
GtkWindow > GtkGrid GtkEventBox {
background-color: blue
}