reftests: Add a reftest checking background-color: transparent

This commit is contained in:
Benjamin Otte 2011-09-26 22:33:40 +02:00
parent c7f2c88b18
commit 89d16a5123
4 changed files with 99 additions and 0 deletions

View File

@ -29,6 +29,9 @@ EXTRA_DIST += \
background-area.css \
background-area.ref.ui \
background-area.ui \
background-color-transparent.css \
background-color-transparent.ref.ui \
background-color-transparent.ui \
border-color-default.css \
border-color-default.ref.ui \
border-color-default.ui \

View File

@ -0,0 +1,4 @@
* { background-image: none; background-color: purple; }
GtkButton { background-color: blue; }
.transparent { background-color: transparent; }
.reference { background-color: purple; }

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="opaque">
<property name="label" translatable="yes">opaque</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="transparent">
<property name="label" translatable="yes">transparent</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="reference" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="opaque">
<property name="label" translatable="yes">opaque</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="transparent">
<property name="label" translatable="yes">transparent</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<style>
<class name="transparent" />
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>