diff --git a/tests/visual/spinner.html b/tests/visual/spinner.html
index f119d3d95..94f827db6 100644
--- a/tests/visual/spinner.html
+++ b/tests/visual/spinner.html
@@ -71,8 +71,9 @@ label {
ul.ui-spinner-box {
height: 1.2em;
- margin-top: 0;
- margin-bottom: 0;
+ line-height: 1.2em;
+ margin: 0;
+ padding: 0;
}
.ui-spinner-up,