Add a reftest for flipping transforms

Verify that a scale of -1 does in fact cause a
gradient to go the other direction.
This commit is contained in:
Matthias Clasen 2020-09-28 20:32:27 -04:00
parent a799c86edb
commit 30b7545fb5
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,14 @@
@import "reset-to-defaults.css";
#reference {
background: linear-gradient(to bottom, red, yellow);
}
window {
background: green;
}
#box1 {
transform: scaleY(-1);
background: linear-gradient(to bottom, yellow, red);
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow" id="window1">
<property name="decorated">0</property>
<property name="default_width">200</property>
<property name="default_height">200</property>
<property name="name">reference</property>
</object>
</interface>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow" id="window1">
<property name="decorated">0</property>
<property name="default_width">200</property>
<property name="default_height">200</property>
<child>
<object class="GtkBox">
<property name="name">box1</property>
</object>
</child>
</object>
</interface>