Add reftest to test border-style: none

From the css docs at http://www.w3.org/TR/CSS2/box.html:

8.5.1 Border width: 'border-top-width', 'border-right-width', 'border-bottom-width',
'border-left-width', and 'border-width'

Computed value:  	absolute length; '0' if the border style is 'none' or 'hidden'

So, if i specify border-style none and a border-width > 0 that should give the
same result as border-width 0.
This commit is contained in:
Alexander Larsson 2011-11-24 18:25:08 +01:00
parent c276f53796
commit 34e15566e3
4 changed files with 59 additions and 0 deletions

View File

@ -57,6 +57,9 @@ EXTRA_DIST += \
border-radius-clamp.css\ border-radius-clamp.css\
border-radius-clamp.ref.ui \ border-radius-clamp.ref.ui \
border-radius-clamp.ui \ border-radius-clamp.ui \
border-style-none.css \
border-style-none.ref.ui \
border-style-none.ui \
box-packing.css \ box-packing.css \
box-packing.ref.ui \ box-packing.ref.ui \
box-packing.ui \ box-packing.ui \

View File

@ -0,0 +1,19 @@
* {
border-color: red;
border-image: none;
background-image: none;
}
GtkButton {
background-color: purple;
border-style: none;
border-width: 5;
border-radius: 15;
}
#reference {
border-style: solid;
border-width: 0;
border-radius: 15;
}

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>
<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>
<property name="width_request">144</property>
<property name="height_request">144</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,18 @@
<?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>
<property name="width_request">144</property>
<property name="height_request">144</property>
</object>
</child>
</object>
</interface>