Reftest background-origin with various background-clip values

This commit is contained in:
Alexander Larsson 2011-11-24 22:00:49 +01:00
parent d8d7c7c171
commit 9fd4e954b5
5 changed files with 204 additions and 0 deletions

View File

@ -32,6 +32,10 @@ EXTRA_DIST += \
background-color-transparent.css \
background-color-transparent.ref.ui \
background-color-transparent.ui \
background-origin.css \
background-origin.ref.ui \
background-origin.ui \
reference-background-origin.png \
border-color-default.css \
border-color-default.ref.ui \
border-color-default.ui \

View File

@ -0,0 +1,65 @@
* {
engine: none;
border-style: none;
border-image: none;
background-image: none;
background-clip: border-box;
background-repeat: no-repeat;
border-radius: 0;
}
GtkWindow {
background-color: rgb(255,255,255);
}
GtkButton {
border-width: 5;
border-style: solid;
border-color: rgba(255,0,0,0.5);
padding: 10;
background-color: rgb(0,0,255);
background-image: url("green-20x20.png");
}
#button1 {
background-origin: border-box;
background-clip: border-box;
}
#button2 {
background-origin: padding-box;
background-clip: border-box;
}
#button3 {
background-origin: content-box;
background-clip: border-box;
}
#button4 {
background-origin: border-box;
background-clip: padding-box;
}
#button5 {
background-origin: padding-box;
background-clip: padding-box;
}
#button6 {
background-origin: content-box;
background-clip: padding-box;
}
#button7 {
background-origin: border-box;
background-clip: content-box;
}
#button8 {
background-origin: padding-box;
background-clip: content-box;
}
#button9 {
background-origin: content-box;
background-clip: content-box;
}
GtkButton#reference {
border-width: 0;
background-image: url("reference-background-origin.png");
}

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>
<property name="width_request">154</property>
<property name="height_request">680</property>
<child>
<object class="GtkButton" id="button">
<property name="name">reference</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>
</child>
</object>
</interface>

View File

@ -0,0 +1,116 @@
<?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" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<property name="border-width">5</property>
<child>
<object class="GtkButton" id="button1">
<property name="name">button1</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button2">
<property name="name">button2</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button3">
<property name="name">button3</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button4">
<property name="name">button4</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button5">
<property name="name">button5</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button6">
<property name="name">button6</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button7">
<property name="name">button7</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button8">
<property name="name">button8</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
<child>
<object class="GtkButton" id="button9">
<property name="name">button9</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>
<property name="width_request">144</property>
<property name="height_request">70</property>
</object>
</child>
</object>
</child>
</object>
</interface>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB