Commit 1ec34ae0 authored by Matthias Clasen's avatar Matthias Clasen

Add a css style test for :first/last/only-child

parent 82a571e0
......@@ -26,6 +26,7 @@ test_css_style_SOURCES = \
test_data = \
label.ui label.css label.nodes \
nth-child.ui nth-child.css nth-child.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
......
@import "reset-to-defaults.css";
label:first-child {
font-size: 20px;
}
label {
font-size: 30px;
}
label:last-child {
font-size: 40px;
}
label:only-child {
font-size: 50px;
}
window visible=0 state=dir-ltr classes=background
decoration visible=1 state=dir-ltr
box visible=1 state=dir-ltr classes=horizontal
box visible=1 state=dir-ltr classes=horizontal
label visible=1 state=dir-ltr
font-size: 20px (nth-child.css:4:17)
label visible=1 state=dir-ltr
font-size: 30px (nth-child.css:7:17)
label visible=1 state=dir-ltr
font-size: 40px (nth-child.css:10:17)
box visible=1 state=dir-ltr classes=horizontal
label visible=1 state=dir-ltr
font-size: 50px (nth-child.css:13:17)
<?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="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment