reftests: Add a test for specificity of @import
This commit is contained in:
@ -96,6 +96,10 @@ EXTRA_DIST += \
|
|||||||
css-match-exact.css \
|
css-match-exact.css \
|
||||||
css-match-exact.ref.ui \
|
css-match-exact.ref.ui \
|
||||||
css-match-exact.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.css \
|
||||||
css-match-inherit.ref.ui \
|
css-match-inherit.ref.ui \
|
||||||
css-match-inherit.ui \
|
css-match-inherit.ui \
|
||||||
|
|||||||
7
tests/reftests/css-match-import-import.css
vendored
Normal file
7
tests/reftests/css-match-import-import.css
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
GtkLabel {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#reference {
|
||||||
|
color: purple;
|
||||||
|
}
|
||||||
9
tests/reftests/css-match-import.css
vendored
Normal file
9
tests/reftests/css-match-import.css
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@import url("css-match-import-import.css");
|
||||||
|
|
||||||
|
GtkLabel {
|
||||||
|
color: purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
#reference {
|
||||||
|
color: purple;
|
||||||
|
}
|
||||||
16
tests/reftests/css-match-import.ref.ui
Normal file
16
tests/reftests/css-match-import.ref.ui
Normal 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>
|
||||||
15
tests/reftests/css-match-import.ui
Normal file
15
tests/reftests/css-match-import.ui
Normal 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>
|
||||||
Reference in New Issue
Block a user