forked from AuroraMiddleware/gtk
reftests: Add reftest for the last 2 fixes
Makes sure that the clipping we do when pushing a group is at the correct place and in particular doesn't influence shadows.
This commit is contained in:
parent
a54db5adcd
commit
46b9b07a11
@ -173,15 +173,18 @@ testdata = \
|
||||
box-pseudo-classes.css \
|
||||
box-pseudo-classes.ref.ui \
|
||||
box-pseudo-classes.ui \
|
||||
box-shadow-changes-modify-clip.css \
|
||||
box-shadow-changes-modify-clip.ref.ui \
|
||||
box-shadow-changes-modify-clip.ui \
|
||||
box-shadow-spec-inset.css \
|
||||
box-shadow-spec-inset.ref.ui \
|
||||
box-shadow-spec-inset.ui \
|
||||
box-shadow-spread.css \
|
||||
box-shadow-spread.ref.ui \
|
||||
box-shadow-spread.ui \
|
||||
box-shadow-changes-modify-clip.css \
|
||||
box-shadow-changes-modify-clip.ref.ui \
|
||||
box-shadow-changes-modify-clip.ui \
|
||||
box-shadow-with-blend-mode.css \
|
||||
box-shadow-with-blend-mode.ref.ui \
|
||||
box-shadow-with-blend-mode.ui \
|
||||
button-wrapping.ui \
|
||||
button-wrapping.ref.ui \
|
||||
color-transition.css \
|
||||
|
19
testsuite/reftests/box-shadow-with-blend-mode.css
Normal file
19
testsuite/reftests/box-shadow-with-blend-mode.css
Normal file
@ -0,0 +1,19 @@
|
||||
button {
|
||||
all: unset;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
box-shadow: 0 0 5px;
|
||||
background-color: transparent;
|
||||
background-blend-mode: lighten, normal;
|
||||
background-image: image(chartreuse), image(tomato);
|
||||
}
|
||||
|
||||
button#reference {
|
||||
box-shadow: 0 0 5px;
|
||||
background-color: tomato;
|
||||
background-blend-mode: lighten;
|
||||
background-image: image(chartreuse);
|
||||
|
||||
}
|
20
testsuite/reftests/box-shadow-with-blend-mode.ref.ui
Normal file
20
testsuite/reftests/box-shadow-with-blend-mode.ref.ui
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.19.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.16"/>
|
||||
<object class="GtkAction" id="action1"/>
|
||||
<object class="GtkAction" id="action2"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="b">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World!</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
19
testsuite/reftests/box-shadow-with-blend-mode.ui
Normal file
19
testsuite/reftests/box-shadow-with-blend-mode.ui
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.19.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.16"/>
|
||||
<object class="GtkAction" id="action1"/>
|
||||
<object class="GtkAction" id="action2"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="b">
|
||||
<property name="label" translatable="yes">Hello World!</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user