mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
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:
parent
c276f53796
commit
34e15566e3
@ -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 \
|
||||||
|
19
tests/reftests/border-style-none.css
Normal file
19
tests/reftests/border-style-none.css
Normal 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;
|
||||||
|
}
|
||||||
|
|
19
tests/reftests/border-style-none.ref.ui
Normal file
19
tests/reftests/border-style-none.ref.ui
Normal 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>
|
18
tests/reftests/border-style-none.ui
Normal file
18
tests/reftests/border-style-none.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user