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:
Benjamin Otte 2011-12-29 22:03:02 +01:00
parent e9dfb8d5b8
commit 53bb230e12
4 changed files with 66 additions and 0 deletions

View File

@ -85,6 +85,9 @@ EXTRA_DIST += \
css-match-inherit.css \ css-match-inherit.css \
css-match-inherit.ref.ui \ css-match-inherit.ref.ui \
css-match-inherit.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.css \
css-match-name.ref.ui \ css-match-name.ref.ui \
css-match-name.ui \ css-match-name.ui \

View File

@ -0,0 +1,12 @@
*,
#reference {
color: green;
}
:insensitive {
color: red;
}
GtkLabel:insensitive {
color: inherit;
}

View 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>

View 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>