mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
reftests: Add a simple reftest for background-position
This is mostly to ensure that the background-positioning feature keeps working and to demonstrate it. https://bugzilla.gnome.org/show_bug.cgi?id=677109
This commit is contained in:
parent
b3f2583a46
commit
3a8cec5f17
@ -43,6 +43,9 @@ EXTRA_DIST += \
|
||||
background-position.css \
|
||||
background-position.ref.ui \
|
||||
background-position.ui \
|
||||
background-position-simple.css \
|
||||
background-position-simple.ref.ui \
|
||||
background-position-simple.ui \
|
||||
background-size.css \
|
||||
background-size.ref.ui \
|
||||
background-size.ui \
|
||||
|
13
tests/reftests/background-position-simple.css
Normal file
13
tests/reftests/background-position-simple.css
Normal file
@ -0,0 +1,13 @@
|
||||
@import url("reset-to-defaults.css");
|
||||
|
||||
* {
|
||||
background-image: linear-gradient(red, blue, red);
|
||||
background-size: 20px 20px;
|
||||
background-position: 50%;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: linear-gradient(blue, red, blue, red, blue);
|
||||
background-size: initial;
|
||||
background-position: initial;
|
||||
}
|
14
tests/reftests/background-position-simple.ref.ui
Normal file
14
tests/reftests/background-position-simple.ref.ui
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="name">reference</property>
|
||||
<property name="width_request">40</property>
|
||||
<property name="height_request">40</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
13
tests/reftests/background-position-simple.ui
Normal file
13
tests/reftests/background-position-simple.ui
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">40</property>
|
||||
<property name="height_request">40</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user