Add a css style test for font inheritance

This commit is contained in:
Matthias Clasen 2015-12-28 12:39:54 -05:00
parent 905ab53c71
commit 82a571e0ca
4 changed files with 31 additions and 0 deletions

View File

@ -25,6 +25,7 @@ test_css_style_SOURCES = \
test-css-style.c
test_data = \
label.ui label.css label.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)

View File

@ -0,0 +1,5 @@
@import "reset-to-defaults.css";
box {
font: "Comic Sans";
}

View File

@ -0,0 +1,6 @@
window visible=0 state=dir-ltr classes=background
decoration visible=1 state=dir-ltr
box visible=1 state=dir-ltr classes=horizontal
font-family: "\"Comic Sans\"" (label.css:4:20)
label visible=1 state=dir-ltr
font-family: "\"Comic Sans\"" (reset-to-defaults.css:2:12)

View File

@ -0,0 +1,19 @@
<?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="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
</object>
</child>
</object>
</interface>