[gtk] reftests: Fix CSS for various tests



commit 0a440a804f94f0718dd485655ae65bbbfdc98032
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
    * Remove spaces between color functions (shade, alpha, ...) and args

 testsuite/reftests/box-pseudo-classes.css          |  8 ++++----
 testsuite/reftests/box-shadow-spec-inset.css       |  6 +++---
 testsuite/reftests/css-match-descendant-later.css  |  6 +++---
 testsuite/reftests/css-match-siblings.css          |  2 +-
 testsuite/reftests/grid-expand.css                 |  2 +-
 testsuite/reftests/label-shadows.css               |  2 +-
 testsuite/reftests/label-sizing.css                |  2 +-
 testsuite/reftests/opacity.css                     |  4 ++--
 testsuite/reftests/style-properties-only-child.css |  2 +-
 testsuite/reftests/treeview-fixed-height.css       | 20 ++++++++++----------
 10 files changed, 27 insertions(+), 27 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/css-match-descendant-later.css 
b/testsuite/reftests/css-match-descendant-later.css
index f0d62ef97e..5f1a0af3e3 100644
--- a/testsuite/reftests/css-match-descendant-later.css
+++ b/testsuite/reftests/css-match-descendant-later.css
@@ -1,11 +1,11 @@
 box {
-  background-color: blue
+  background-color: blue;
 }
 
 grid box {
-  background-color: red
+  background-color: red;
 }
 
 window > grid box {
-  background-color: blue
+  background-color: blue;
 }
diff --git a/testsuite/reftests/css-match-siblings.css b/testsuite/reftests/css-match-siblings.css
index 4c99c614bc..7cc00a0a46 100644
--- a/testsuite/reftests/css-match-siblings.css
+++ b/testsuite/reftests/css-match-siblings.css
@@ -1,6 +1,6 @@
 * + *,
 #red {
-  color: red
+  color: red;
 }
 
 * ~ * ~ label,
diff --git a/testsuite/reftests/grid-expand.css b/testsuite/reftests/grid-expand.css
index fd336dbfe1..ba59114011 100644
--- a/testsuite/reftests/grid-expand.css
+++ b/testsuite/reftests/grid-expand.css
@@ -1,3 +1,3 @@
 box {
-  background-color: lime
+  background-color: lime;
 }
diff --git a/testsuite/reftests/label-shadows.css b/testsuite/reftests/label-shadows.css
index 9598c1a415..7c87e268ea 100644
--- a/testsuite/reftests/label-shadows.css
+++ b/testsuite/reftests/label-shadows.css
@@ -3,5 +3,5 @@ label {
 }
 
 .no-shadow {
-  text-shadow: none
+  text-shadow: none;
 }
diff --git a/testsuite/reftests/label-sizing.css b/testsuite/reftests/label-sizing.css
index 4e9dad62ad..4d77405657 100644
--- a/testsuite/reftests/label-sizing.css
+++ b/testsuite/reftests/label-sizing.css
@@ -6,5 +6,5 @@
 }
 
 GtkPaned label {
-  background-color: pink
+  background-color: pink;
 }
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;
 }
diff --git a/testsuite/reftests/treeview-fixed-height.css b/testsuite/reftests/treeview-fixed-height.css
index a448ebca15..a3576e2f77 100644
--- a/testsuite/reftests/treeview-fixed-height.css
+++ b/testsuite/reftests/treeview-fixed-height.css
@@ -7,7 +7,7 @@
 @define-color color_base #c8c4c0;
 @define-color color_sel #406080;
 @define-color color_tip #ffffc0;
-@define-color color_dark shade (@color_base, 0.6);
+@define-color color_dark shade(@color_base, 0.6);
 
 * {
     background-color: @color_base;
@@ -47,26 +47,26 @@ GtkCheckButton:selected {
 }
 
 .slider, .pane-separator {
-    background-color: alpha (black, 0);
-    color: alpha (black, 0);
+    background-color: alpha(black, 0);
+    color: alpha(black, 0);
 }
 
 /* GRADIENTS */
 
 button, .notebook tab:active, .slider {
-    background-image: linear-gradient(to bottom, shade (@color_base, 1.2), @color_base);
+    background-image: linear-gradient(to bottom, shade(@color_base, 1.2), @color_base);
 }
 
 button:active, .notebook tab, .trough {
-    background-image: linear-gradient(to bottom, shade (@color_base, 0.8), @color_base);
+    background-image: linear-gradient(to bottom, shade(@color_base, 0.8), @color_base);
 }
 
 button.vertical, .slider.vertical {
-    background-image: linear-gradient(to right, shade (@color_base, 1.2), @color_base);
+    background-image: linear-gradient(to right, shade(@color_base, 1.2), @color_base);
 }
 
 button.vertical:active, .trough.vertical {
-    background-image: linear-gradient(to right, shade (@color_base, 0.8), @color_base);
+    background-image: linear-gradient(to right, shade(@color_base, 0.8), @color_base);
 }
 
 column-header > .button {
@@ -74,12 +74,12 @@ column-header > .button {
 }
 
 .progressbar {
-    background-image: linear-gradient(to bottom, shade (@color_sel, 1.2), @color_sel);
-    border-color: shade (@color_sel, 0.7);
+    background-image: linear-gradient(to bottom, shade(@color_sel, 1.2), @color_sel);
+    border-color: shade(@color_sel, 0.7);
 }
 
 .progressbar.vertical {
-    background-image: linear-gradient(to right, shade (@color_sel, 1.2), @color_sel);
+    background-image: linear-gradient(to right, shade(@color_sel, 1.2), @color_sel);
 }
 
 /* SPACING */


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