diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index d53cf5a20a..058529d921 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -130,6 +130,9 @@ EXTRA_DIST += \
grid-spacing3.css \
grid-spacing3.ref.ui \
grid-spacing3.ui \
+ inherit-and-initial.css \
+ inherit-and-initial.ref.ui \
+ inherit-and-initial.ui \
label-attribute-preference.css \
label-attribute-preference.ref.ui \
label-attribute-preference.ui \
diff --git a/tests/reftests/inherit-and-initial.css b/tests/reftests/inherit-and-initial.css
new file mode 100644
index 0000000000..45e0ce5dfe
--- /dev/null
+++ b/tests/reftests/inherit-and-initial.css
@@ -0,0 +1,85 @@
+* {
+ background-clip: initial;
+ background-color: initial;
+ background-image: initial;
+ background-origin: initial;
+ background-repeat: initial;
+ border-bottom-color: initial;
+ border-bottom-left-radius: initial;
+ border-bottom-right-radius: initial;
+ border-bottom-width: initial;
+ border-image-repeat: initial;
+ border-image-slice: initial;
+ border-image-source: initial;
+ border-image-width: initial;
+ border-left-color: initial;
+ border-left-width: initial;
+ border-right-color: initial;
+ border-right-width: initial;
+ border-style: initial;
+ border-top-color: initial;
+ border-top-left-radius: initial;
+ border-top-right-radius: initial;
+ border-top-width: initial;
+ box-shadow: initial;
+ color: initial;
+ engine: initial;
+ font-family: initial;
+ font-size: initial;
+ font-style: initial;
+ font-variant: initial;
+ font-weight: initial;
+ icon-shadow: initial;
+ margin-bottom: initial;
+ margin-left: initial;
+ margin-right: initial;
+ margin-top: initial;
+ padding-bottom: initial;
+ padding-left: initial;
+ padding-right: initial;
+ padding-top: initial;
+ text-shadow: initial;
+}
+
+#inherit {
+ background-clip: inherit;
+ background-color: inherit;
+ background-image: inherit;
+ background-origin: inherit;
+ background-repeat: inherit;
+ border-bottom-color: inherit;
+ border-bottom-left-radius: inherit;
+ border-bottom-right-radius: inherit;
+ border-bottom-width: inherit;
+ border-image-repeat: inherit;
+ border-image-slice: inherit;
+ border-image-source: inherit;
+ border-image-width: inherit;
+ border-left-color: inherit;
+ border-left-width: inherit;
+ border-right-color: inherit;
+ border-right-width: inherit;
+ border-style: inherit;
+ border-top-color: inherit;
+ border-top-left-radius: inherit;
+ border-top-right-radius: inherit;
+ border-top-width: inherit;
+ box-shadow: inherit;
+ color: inherit;
+ engine: inherit;
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-variant: inherit;
+ font-weight: inherit;
+ icon-shadow: inherit;
+ margin-bottom: inherit;
+ margin-left: inherit;
+ margin-right: inherit;
+ margin-top: inherit;
+ padding-bottom: inherit;
+ padding-left: inherit;
+ padding-right: inherit;
+ padding-top: inherit;
+ text-shadow: inherit;
+}
diff --git a/tests/reftests/inherit-and-initial.ref.ui b/tests/reftests/inherit-and-initial.ref.ui
new file mode 100644
index 0000000000..5d5d7c3c14
--- /dev/null
+++ b/tests/reftests/inherit-and-initial.ref.ui
@@ -0,0 +1,2166 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/reftests/inherit-and-initial.ui b/tests/reftests/inherit-and-initial.ui
new file mode 100644
index 0000000000..c8a31e8faf
--- /dev/null
+++ b/tests/reftests/inherit-and-initial.ui
@@ -0,0 +1,2009 @@
+
+
+
+
+ 100
+ 50
+ 1
+ 10
+
+
+ 1000
+ 1
+ 42
+ 1
+ 10
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ Andrea
+ Cimi
+
+
+ False
+ Otto
+ chaotic
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam fringilla, est ut feugiat ultrices, elit lacus ultricies nibh, id commodo tortor nisi id elit.
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
+Morbi vel elit erat. Maecenas dignissim, dui et pharetra rutrum, tellus lectus rutrum mi, a convallis libero nisi quis tellus.
+Nulla facilisi. Nullam eleifend lobortis nisl, in porttitor tellus malesuada vitae.
+Aenean lacus tellus, pellentesque quis molestie quis, fringilla in arcu.
+Duis elementum, tellus sed tristique semper, metus metus accumsan augue, et porttitor augue orci a libero.
+Ut sed justo ac felis placerat laoreet sed id sem. Proin mattis tincidunt odio vitae tristique.
+Morbi massa libero, congue vitae scelerisque vel, ultricies vel nisl.
+Vestibulum in tortor diam, quis aliquet quam. Praesent ut justo neque, tempus rutrum est.
+Duis eu lectus quam. Vivamus eget metus a mauris molestie venenatis pulvinar eleifend nisi.
+Nulla facilisi. Pellentesque at dolor sit amet purus dapibus pulvinar molestie quis neque.
+Suspendisse feugiat quam quis dolor accumsan cursus.
+
+
+
+ False
+ popup
+
+
+ True
+ False
+ vertical
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+
+
+
+ True
+ False
+ False
+ Save
+ True
+ gtk-save
+
+
+ False
+ True
+
+
+
+
+ True
+ False
+ False
+ Open
+ True
+ gtk-open
+
+
+ False
+ True
+
+
+
+
+ True
+ False
+ False
+
+
+ False
+ True
+
+
+
+
+ True
+ False
+ False
+ Find
+ True
+ gtk-find
+
+
+ False
+ True
+
+
+
+
+ True
+ False
+ False
+
+
+
+
+
+ True
+ True
+
+
+
+
+ True
+ False
+ False
+
+
+ True
+ True
+ •
+ search...
+
+
+
+
+ False
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ False
+ 6
+
+
+ True
+ False
+ vertical
+ 4
+
+
+ True
+ False
+ True
+
+
+ False
+ comboboxentry
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ False
+ True
+
+
+ False
+ •
+ comboboxentry
+
+
+
+
+ False
+ False
+ 1
+
+
+
+
+ True
+ True
+ •
+ entry
+
+
+ False
+ False
+ 2
+
+
+
+
+ True
+ False
+ True
+ •
+ entry
+
+
+ False
+ False
+ 3
+
+
+
+
+ True
+ False
+ 20
+
+
+ True
+ False
+ label
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ False
+ label
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ True
+ •
+ adjustment2
+
+
+ False
+ False
+ 2
+
+
+
+
+ True
+ True
+ •
+
+
+ False
+ False
+ 3
+
+
+
+
+ False
+ False
+ 4
+
+
+
+
+ True
+ False
+ True
+
+
+ checkbutton
+ True
+ True
+ False
+ False
+ 0
+ True
+ True
+
+
+ 0
+ 0
+ 1
+ 1
+
+
+
+
+ checkbutton
+ True
+ True
+ False
+ False
+ 0
+ True
+
+
+ 0
+ 1
+ 1
+ 1
+
+
+
+
+ checkbutton
+ True
+ True
+ True
+ False
+ False
+ 0
+ True
+
+
+ 0
+ 2
+ 1
+ 1
+
+
+
+
+ checkbutton
+ True
+ False
+ True
+ False
+ False
+ 0
+ True
+ True
+
+
+ 0
+ 3
+ 1
+ 1
+
+
+
+
+ checkbutton
+ True
+ False
+ True
+ False
+ False
+ 0
+ True
+
+
+ 0
+ 4
+ 1
+ 1
+
+
+
+
+ checkbutton
+ True
+ False
+ True
+ True
+ False
+ False
+ 0
+ True
+
+
+ 0
+ 5
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ True
+ False
+ False
+ 0
+ True
+ True
+
+
+ 1
+ 0
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ True
+ False
+ False
+ 0
+ True
+ True
+ radiobutton1
+
+
+ 1
+ 1
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ True
+ True
+ False
+ False
+ 0
+ True
+ True
+ radiobutton1
+
+
+ 1
+ 2
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ False
+ True
+ False
+ False
+ 0
+ True
+ True
+
+
+ 1
+ 3
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ False
+ True
+ False
+ False
+ 0
+ True
+ True
+ radiobutton3
+
+
+ 1
+ 4
+ 1
+ 1
+
+
+
+
+ radiobutton
+ True
+ False
+ True
+ True
+ False
+ False
+ 0
+ True
+ True
+ radiobutton3
+
+
+ 1
+ 5
+ 1
+ 1
+
+
+
+
+ True
+ True
+
+
+ 0
+ 6
+ 1
+ 1
+
+
+
+
+ True
+ False
+
+
+ 1
+ 6
+ 1
+ 1
+
+
+
+
+ False
+ False
+ 5
+
+
+
+
+ False
+ False
+ 4
+ 0
+
+
+
+
+ True
+ False
+ vertical
+
+
+ False
+ True
+ 1
+
+
+
+
+ 110
+ True
+ False
+ vertical
+ 4
+
+
+ togglebutton
+ True
+ True
+ True
+ False
+
+
+ False
+ False
+ 0
+
+
+
+
+ togglebutton
+ True
+ False
+ True
+ True
+ False
+
+
+ False
+ False
+ 1
+
+
+
+
+ togglebutton
+ True
+ True
+ True
+ False
+ True
+
+
+ False
+ False
+ 2
+
+
+
+
+ togglebutton
+ True
+ False
+ True
+ True
+ False
+ True
+
+
+ False
+ False
+ 3
+
+
+
+
+ True
+ False
+ liststore1
+ 0
+
+
+
+ 2
+
+
+
+
+ False
+ True
+ 5
+
+
+
+
+ True
+ False
+ False
+ liststore1
+ 1
+
+
+
+ 2
+
+
+
+
+ False
+ False
+ 6
+
+
+
+
+ True
+ True
+ True
+ False
+
+
+ False
+ False
+ 6
+
+
+
+
+ True
+ True
+ True
+ False
+ #31316867a09f
+
+
+ False
+ True
+ 8
+
+
+
+
+ True
+ False
+
+
+ False
+ True
+ 8
+
+
+
+
+ False
+ False
+ 2
+
+
+
+
+ True
+ False
+ vertical
+
+
+ False
+ True
+ 3
+
+
+
+
+ True
+ False
+ vertical
+ 4
+
+
+ True
+ False
+ vertical
+ 8
+ True
+
+
+ True
+ False
+ 0.5
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ 0.5
+ True
+
+
+ False
+ False
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+
+
+ True
+ False
+ True
+ vertical
+ True
+
+
+ True
+ True
+ adjustment1
+ False
+ 75
+ False
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ True
+ adjustment1
+ False
+ 75
+ False
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ False
+ False
+ 1
+
+
+
+
+ True
+ False
+ True
+
+
+ True
+ False
+ True
+ 4
+
+
+ True
+ False
+ vertical
+ 0.5
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+ vertical
+ 0.5
+ True
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ False
+ True
+ 4
+
+
+ 100
+ True
+ True
+ vertical
+ adjustment1
+ False
+ 75
+ False
+
+
+ False
+ True
+ 0
+
+
+
+
+ 100
+ True
+ False
+ True
+ vertical
+ adjustment1
+ False
+ 75
+ False
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ False
+ 1
+
+
+
+
+ True
+ True
+ 2
+
+
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+
+
+ link button
+ True
+ True
+ True
+ True
+ False
+ none
+ http://www.gtk.org
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+
+
+ True
+ True
+ in
+
+
+ True
+ False
+
+
+ True
+ False
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam fringilla, est ut feugiat ultrices, elit lacus ultricies nibh, id commodo tortor nisi id elit.
+Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
+Morbi vel elit erat. Maecenas dignissim, dui et pharetra rutrum, tellus lectus rutrum mi, a convallis libero nisi quis tellus.
+Nulla facilisi. Nullam eleifend lobortis nisl, in porttitor tellus malesuada vitae.
+Aenean lacus tellus, pellentesque quis molestie quis, fringilla in arcu.
+Duis elementum, tellus sed tristique semper, metus metus accumsan augue, et porttitor augue orci a libero.
+Ut sed justo ac felis placerat laoreet sed id sem. Proin mattis tincidunt odio vitae tristique.
+Morbi massa libero, congue vitae scelerisque vel, ultricies vel nisl.
+Vestibulum in tortor diam, quis aliquet quam. Praesent ut justo neque, tempus rutrum est.
+Duis eu lectus quam. Vivamus eget metus a mauris molestie venenatis pulvinar eleifend nisi.
+Nulla facilisi. Pellentesque at dolor sit amet purus dapibus pulvinar molestie quis neque.
+Suspendisse feugiat quam quis dolor accumsan cursus.
+
+
+
+
+
+
+
+
+ True
+ False
+ expander
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 3
+
+
+
+
+ False
+ False
+ 4
+
+
+
+
+ True
+ False
+ vertical
+
+
+ False
+ True
+ 5
+
+
+
+
+ True
+ False
+ vertical
+ True
+
+
+ True
+ False
+ 0
+ in
+
+
+ True
+ False
+ 12
+
+
+
+
+
+
+
+ True
+ False
+ <b>In</b>
+ True
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ True
+ False
+ 0
+ out
+
+
+ True
+ False
+ 12
+
+
+
+
+
+
+
+ True
+ False
+ <b>Out</b>
+ True
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+ True
+ False
+ 0
+
+
+ True
+ False
+ 12
+
+
+
+
+
+
+
+ True
+ False
+ <b>Etched out</b>
+ True
+
+
+
+
+ True
+ True
+ 2
+
+
+
+
+ True
+ False
+ 0
+ etched-out
+
+
+ True
+ False
+ 12
+
+
+
+
+
+
+
+ True
+ False
+ <b>Etched out</b>
+ True
+
+
+
+
+ True
+ True
+ 3
+
+
+
+
+ True
+ True
+ 6
+
+
+
+
+ True
+ False
+ vertical
+
+
+ False
+ True
+ 7
+
+
+
+
+ True
+ False
+ vertical
+ 4
+
+
+ 150
+ True
+ True
+ always
+ in
+
+
+ True
+ True
+ liststore1
+ False
+ 0
+
+
+
+
+
+ Cool
+
+
+
+ 0
+
+
+
+
+
+
+ Name
+
+
+
+ 1
+
+
+
+
+
+
+ Nick
+
+
+
+ 2
+
+
+
+
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ True
+ True
+ in
+
+
+ True
+ True
+ textbuffer1
+
+
+
+
+ True
+ True
+ 1
+
+
+
+
+ True
+ True
+ 6
+ 8
+
+
+
+
+ False
+ True
+ 10
+ 2
+
+
+
+
+ True
+ False
+
+
+ False
+ True
+ 3
+
+
+
+
+ True
+ False
+ 5
+ 5
+ 5
+ 10
+ True
+
+
+ True
+ True
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+
+
+ True
+ False
+ page 1
+
+
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 1
+
+
+
+
+ True
+ False
+ page 2
+
+
+ 1
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 2
+
+
+
+
+ True
+ False
+ page 3
+
+
+ 2
+ False
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ right
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+
+
+ True
+ False
+ page 1
+
+
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 1
+
+
+
+
+ True
+ False
+ page 2
+
+
+ 1
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 2
+
+
+
+
+ True
+ False
+ page 3
+
+
+ 2
+ False
+
+
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ True
+ bottom
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+
+
+ True
+ False
+ page 1
+
+
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 1
+
+
+
+
+ True
+ False
+ page 2
+
+
+ 1
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 2
+
+
+
+
+ True
+ False
+ page 3
+
+
+ 2
+ False
+
+
+
+
+ False
+ True
+ 2
+
+
+
+
+ True
+ True
+ left
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+
+
+ True
+ False
+ page 1
+
+
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 1
+
+
+
+
+ True
+ False
+ page 2
+
+
+ 1
+ False
+
+
+
+
+ True
+ False
+ vertical
+
+
+
+
+
+ 2
+
+
+
+
+ True
+ False
+ page 3
+
+
+ 2
+ False
+
+
+
+
+ False
+ True
+ 3
+
+
+
+
+ True
+ True
+ 4
+
+
+
+
+ True
+ False
+
+
+ False
+ True
+ 5
+
+
+
+
+
+
+
+
+