mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
testsuite: Add css/style/root test
Should have been a part of 76421847a5
but I forgot to commit it.
This commit is contained in:
parent
48fc8d6606
commit
3ab189404e
13
testsuite/css/style/root.css
Normal file
13
testsuite/css/style/root.css
Normal file
@ -0,0 +1,13 @@
|
||||
:root {
|
||||
color: red;
|
||||
}
|
||||
|
||||
window {
|
||||
/* :root has higher priority */
|
||||
color: blue;
|
||||
}
|
||||
|
||||
label {
|
||||
/* :root doesn't apply so it's still green */
|
||||
color: green;
|
||||
}
|
6
testsuite/css/style/root.nodes
Normal file
6
testsuite/css/style/root.nodes
Normal file
@ -0,0 +1,6 @@
|
||||
window.background:dir(ltr)
|
||||
color: rgb(255,0,0); /* root.css:2:3-14 */
|
||||
|
||||
box.horizontal:dir(ltr)
|
||||
label:dir(ltr)
|
||||
color: rgb(0,128,0); /* root.css:12:3-16 */
|
18
testsuite/css/style/root.ui
Normal file
18
testsuite/css/style/root.ui
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="decorated">0</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>
|
Loading…
Reference in New Issue
Block a user