mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
reftests: Add a reftest for recent commit
Check that a computed background-size of 0 is treated as 0.
This commit is contained in:
parent
67302c5ee0
commit
a68e76e058
@ -56,6 +56,9 @@ EXTRA_DIST += \
|
||||
background-size-keywords.css \
|
||||
background-size-keywords.ref.ui \
|
||||
background-size-keywords.ui \
|
||||
background-size-zero.css \
|
||||
background-size-zero.ref.ui \
|
||||
background-size-zero.ui \
|
||||
background-window-transparent.css \
|
||||
background-window-transparent.ref.ui \
|
||||
background-window-transparent.ui \
|
||||
|
11
tests/reftests/background-size-zero.css
Normal file
11
tests/reftests/background-size-zero.css
Normal file
@ -0,0 +1,11 @@
|
||||
@import "reset-to-defaults.css";
|
||||
|
||||
.background {
|
||||
background-image: linear-gradient(to right, blue);
|
||||
background-size: 0%;
|
||||
}
|
||||
|
||||
#reference {
|
||||
background-image: initial;
|
||||
background-size: initial;
|
||||
}
|
12
tests/reftests/background-size-zero.ref.ui
Normal file
12
tests/reftests/background-size-zero.ref.ui
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<property name="name">reference</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
11
tests/reftests/background-size-zero.ui
Normal file
11
tests/reftests/background-size-zero.ui
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user