]> Pileus Git - ~andy/gtk/commitdiff
reftests: Fix linear-gradient reftest (again)
authorBenjamin Otte <otte@redhat.com>
Tue, 20 Nov 2012 11:21:03 +0000 (12:21 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Nov 2012 11:21:03 +0000 (12:21 +0100)
Make it so that the repeating vs normal test only uses sharp color
cutoffs instead of real gradients. That removes rounding errors and
makes the test pass.

tests/reftests/linear-gradient.css

index ccfa62ac1d048271079e02704e71cb0b0c577591..ccb50d6f2d2bc26ac238df98317842cf02f6203a 100644 (file)
 }
 
 #c {
-  background-image: linear-gradient(3.5turn, red, lime 10px, red 20px, green 30px, red 40px);
+  background-image: linear-gradient(3.5turn, red, red 10px, lime 10px, lime 20px, red 20px, red 30px, lime 30px, lime 40px, red 40px);
 }
 
 #reference #c {
-  background-image: repeating-linear-gradient(to bottom, red, lime 10px, red 20px, green 30px, red 40px);
+  background-image: repeating-linear-gradient(to bottom, red, red 10px, lime 10px, lime 20px, red 20px);
 }
 
 #d {