testsuite: Add css/style/root test

Should have been a part of 76421847a5
but I forgot to commit it.
This commit is contained in:
Alice Mikhaylenko 2024-04-22 21:33:00 +04:00
parent 48fc8d6606
commit 3ab189404e
3 changed files with 37 additions and 0 deletions

View 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;
}

View 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 */

View 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>