[gtk+] reftests: I can't count in CSS



commit 9be26ee99a5d213e403b9a2127c336ea0d3df32b
Author: Benjamin Otte <otte redhat com>
Date:   Sat Sep 7 00:23:38 2013 +0200

    reftests: I can't count in CSS
    
    nth-child() is 1-indexed, not 0-indexed.
    
    It doesn't matter for this test really, but better do it right to not confuse
    poor developers who wonder why the first image is highlighted when nth-child(0)
    clearly states "none".

 testsuite/reftests/gtk-image-effect-inherit.css |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/testsuite/reftests/gtk-image-effect-inherit.css b/testsuite/reftests/gtk-image-effect-inherit.css
index a1c40be..2a6b041 100644
--- a/testsuite/reftests/gtk-image-effect-inherit.css
+++ b/testsuite/reftests/gtk-image-effect-inherit.css
@@ -1,11 +1,11 @@
-GtkBox > :nth-child(0) {
+GtkBox > :nth-child(1) {
   -gtk-image-effect: none;
 }
 
-GtkBox > :nth-child(1) {
+GtkBox > :nth-child(2) {
   -gtk-image-effect: highlight;
 }
 
-GtkBox > :nth-child(2) {
+GtkBox > :nth-child(3) {
   -gtk-image-effect: dim;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]