reftests: Add test for pseudo-class matching

Previous GTK matched pseudoclasses not based on CSS rules, but based on
their value in the enumeration. This is now fixed.
This commit is contained in:
Benjamin Otte 2011-12-28 23:16:51 +01:00
parent ba5e7012b1
commit 821f9b478f
4 changed files with 65 additions and 0 deletions

View File

@ -103,6 +103,9 @@ EXTRA_DIST += \
css-match-type.css \
css-match-type.ref.ui \
css-match-type.ui \
css-multi-state.css \
css-multi-state.ref.ui \
css-multi-state.ui \
entry-progress-coloring.css \
entry-progress-coloring.ref.ui \
entry-progress-coloring.ui \

View File

@ -0,0 +1,9 @@
GtkLabel:active,
#reference:insensitive {
color: green;
}
GtkLabel:insensitive,
#reference:active {
color: blue;
}

View File

@ -0,0 +1,27 @@
<?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="GtkToggleButton" id="togglebutton1">
<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>
<property name="active">True</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">insensitive</property>
</object>
</child>
</object>
</child>
</object>
</interface>

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="GtkToggleButton" id="togglebutton1">
<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>
<property name="active">True</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">insensitive</property>
</object>
</child>
</object>
</child>
</object>
</interface>