[gtk/wip/otte/css] reftests: Fix CSS for various tests



commit 63eb8afa8df6eb3f4734cdd29c965e9383389541
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 12 05:25:51 2019 +0200

    reftests: Fix CSS for various tests
    
    * :nth-child(first) => :first-child
    * :nth-child(last) => :last-child
    * Add semicolons at end of declarations

 testsuite/reftests/box-pseudo-classes.css          | 8 ++++----
 testsuite/reftests/box-shadow-spec-inset.css       | 6 +++---
 testsuite/reftests/opacity.css                     | 4 ++--
 testsuite/reftests/style-properties-only-child.css | 2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/testsuite/reftests/box-pseudo-classes.css b/testsuite/reftests/box-pseudo-classes.css
index 5aed8d07cc..a6abd19243 100644
--- a/testsuite/reftests/box-pseudo-classes.css
+++ b/testsuite/reftests/box-pseudo-classes.css
@@ -10,19 +10,19 @@ button:nth-child(odd) {
   background-color: red;
 }
 
-button:nth-child(first) {
+button:first-child {
   background-color: purple;
 }
 
-button:nth-child(last):nth-child(even) {
+button:last-child:nth-child(even) {
   background-color: lime;
 }
 
-button:nth-child(last):nth-child(odd) {
+button:last-child:nth-child(odd) {
   background-color: purple;
 }
 
-button:nth-child(last):nth-child(first) {
+button:last-child:first-child {
   background-color: blue;
 }
 
diff --git a/testsuite/reftests/box-shadow-spec-inset.css b/testsuite/reftests/box-shadow-spec-inset.css
index a7f5e7b69b..9bf2cf0d06 100644
--- a/testsuite/reftests/box-shadow-spec-inset.css
+++ b/testsuite/reftests/box-shadow-spec-inset.css
@@ -9,7 +9,7 @@
 }
 
 .column1 {
-  /* border-radius: 20px */;
+  /* border-radius: 20px; */
 }
 
 .column2 {
@@ -20,7 +20,7 @@
   box-shadow:
     rgba(0,0,0,1)
     15px 15px
-    inset
+    inset;
 }
 
 .row3 {
@@ -28,7 +28,7 @@
     rgba(0,0,0,1)
     15px 15px 0
     10px /*spread*/
-    inset
+    inset;
 }
 
 .reference-border {
diff --git a/testsuite/reftests/opacity.css b/testsuite/reftests/opacity.css
index d95ba8d33b..f8bdaac147 100644
--- a/testsuite/reftests/opacity.css
+++ b/testsuite/reftests/opacity.css
@@ -9,9 +9,9 @@ button {
 }
 
 #alpha {
-  opacity: 0.5
+  opacity: 0.5;
 }
 
 #ref {
-  opacity: 0.125
+  opacity: 0.125;
 }
diff --git a/testsuite/reftests/style-properties-only-child.css 
b/testsuite/reftests/style-properties-only-child.css
index e652ef7615..10c1178fdc 100644
--- a/testsuite/reftests/style-properties-only-child.css
+++ b/testsuite/reftests/style-properties-only-child.css
@@ -1,4 +1,4 @@
-.only-child-ref:nth-child(first):nth-child(last) {
+.only-child-ref:first-child:last-child {
     color: blue;
     background-color: red;
 }


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