gtk/testsuite/reftests/box-pseudo-classes.css

51 lines
643 B
CSS
Raw Normal View History

* {
engine: none;
background-image: none;
}
.button:nth-child(even) {
background-color: yellow;
}
.button:nth-child(odd) {
background-color: red;
}
.button:nth-child(first) {
background-color: purple;
}
.button:nth-child(last):nth-child(even) {
background-color: lime;
}
.button:nth-child(last):nth-child(odd) {
background-color: purple;
}
.button:nth-child(last):nth-child(first) {
background-color: blue;
}
/* for reference */
#red {
background-color: red;
}
#lime {
background-color: lime;
}
#purple {
background-color: purple;
}
#yellow {
background-color: yellow;
}
#blue {
background-color: blue;
}