reftests: Add a test for specificity of @import

This commit is contained in:
Benjamin Otte 2012-03-13 21:20:32 +01:00
parent 05e6cde97d
commit 72a308abee
5 changed files with 51 additions and 0 deletions

View File

@ -96,6 +96,10 @@ EXTRA_DIST += \
css-match-exact.css \
css-match-exact.ref.ui \
css-match-exact.ui \
css-match-import.css \
css-match-import-import.css \
css-match-import.ui \
css-match-import.ref.ui \
css-match-inherit.css \
css-match-inherit.ref.ui \
css-match-inherit.ui \

View File

@ -0,0 +1,7 @@
GtkLabel {
color: blue;
}
#reference {
color: purple;
}

9
tests/reftests/css-match-import.css vendored Normal file
View File

@ -0,0 +1,9 @@
@import url("css-match-import-import.css");
GtkLabel {
color: purple;
}
#reference {
color: purple;
}

View File

@ -0,0 +1,16 @@
<?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="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="name">purple</property>
<property name="label" translatable="yes">Purple</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,15 @@
<?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="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Purple</property>
</object>
</child>
</object>
</interface>