mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
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:
parent
a799c86edb
commit
30b7545fb5
14
testsuite/reftests/gradient-flip.css
Normal file
14
testsuite/reftests/gradient-flip.css
Normal 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);
|
||||
}
|
9
testsuite/reftests/gradient-flip.ref.ui
Normal file
9
testsuite/reftests/gradient-flip.ref.ui
Normal 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>
|
13
testsuite/reftests/gradient-flip.ui
Normal file
13
testsuite/reftests/gradient-flip.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user