reftests: Add reftest for fractional border sizes

This commit is contained in:
Benjamin Otte
2012-10-27 03:17:43 +02:00
parent fd73c1f8d9
commit 762e2d9322
4 changed files with 47 additions and 0 deletions

View File

@ -66,6 +66,9 @@ EXTRA_DIST += \
border-color-default.css \
border-color-default.ref.ui \
border-color-default.ui \
border-half-pixel.css \
border-half-pixel.ref.ui \
border-half-pixel.ui \
border-image-ball-green.png \
border-image-ball-red.png \
border-image-ball-yellow.png \

View File

@ -0,0 +1,11 @@
@import "reset-to-defaults.css";
.button {
border-top: 0.5px solid red;
border-bottom: 0.5px solid blue;
}
#reference {
border-top: 1px solid rgba(255,0,0,0.5);
border-bottom: 1px solid rgba(0,0,255,0.5);
}

View File

@ -0,0 +1,17 @@
<?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="GtkButton" id="button1">
<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,16 @@
<?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="GtkButton" id="button1">
<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>