mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
reftests: Add a test for a parent in a different state
inherit in those cases should inherit from that different state, not from this state.
This commit is contained in:
parent
e9dfb8d5b8
commit
53bb230e12
@ -85,6 +85,9 @@ EXTRA_DIST += \
|
||||
css-match-inherit.css \
|
||||
css-match-inherit.ref.ui \
|
||||
css-match-inherit.ui \
|
||||
css-match-inherit-different-state.css \
|
||||
css-match-inherit-different-state.ref.ui \
|
||||
css-match-inherit-different-state.ui \
|
||||
css-match-name.css \
|
||||
css-match-name.ref.ui \
|
||||
css-match-name.ui \
|
||||
|
12
tests/reftests/css-match-inherit-different-state.css
Normal file
12
tests/reftests/css-match-inherit-different-state.css
Normal file
@ -0,0 +1,12 @@
|
||||
*,
|
||||
#reference {
|
||||
color: green;
|
||||
}
|
||||
|
||||
:insensitive {
|
||||
color: red;
|
||||
}
|
||||
|
||||
GtkLabel:insensitive {
|
||||
color: inherit;
|
||||
}
|
26
tests/reftests/css-match-inherit-different-state.ref.ui
Normal file
26
tests/reftests/css-match-inherit-different-state.ref.ui
Normal file
@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="name">reference</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">I should be green</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
25
tests/reftests/css-match-inherit-different-state.ui
Normal file
25
tests/reftests/css-match-inherit-different-state.ui
Normal file
@ -0,0 +1,25 @@
|
||||
<?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>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">I should be green</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user