forked from AuroraMiddleware/gtk
Add a css style test for inherit and initial
This commit is contained in:
parent
1ec34ae085
commit
33be60b0ab
@ -25,6 +25,7 @@ test_css_style_SOURCES = \
|
||||
test-css-style.c
|
||||
|
||||
test_data = \
|
||||
inherit.ui inherit.css inherit.nodes \
|
||||
label.ui label.css label.nodes \
|
||||
nth-child.ui nth-child.css nth-child.nodes \
|
||||
$(NULL)
|
||||
|
11
testsuite/css/style/inherit.css
Normal file
11
testsuite/css/style/inherit.css
Normal file
@ -0,0 +1,11 @@
|
||||
@import "reset-to-defaults.css";
|
||||
|
||||
box {
|
||||
color: red;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
label#label1 {
|
||||
color: initial;
|
||||
opacity: inherit;
|
||||
}
|
9
testsuite/css/style/inherit.nodes
Normal file
9
testsuite/css/style/inherit.nodes
Normal file
@ -0,0 +1,9 @@
|
||||
window visible=0 state=dir-ltr classes=background
|
||||
decoration visible=1 state=dir-ltr
|
||||
box visible=1 state=dir-ltr classes=horizontal
|
||||
color: rgb(255,0,0) (inherit.css:4:12)
|
||||
opacity: 0.5 (inherit.css:5:14)
|
||||
label id=label1 visible=1 state=dir-ltr
|
||||
opacity: 0.5 (inherit.css:10:18)
|
||||
label id=label2 visible=1 state=dir-ltr
|
||||
color: rgb(255,0,0) (reset-to-defaults.css:2:12)
|
27
testsuite/css/style/inherit.ui
Normal file
27
testsuite/css/style/inherit.ui
Normal 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="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="name">label1</property>
|
||||
<property name="label" translatable="yes">Hello World!</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="name">label2</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Hello World!</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user