diff --git a/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ref.ui b/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ref.ui
new file mode 100644
index 0000000000..68c5d0a112
--- /dev/null
+++ b/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ref.ui
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ui b/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ui
new file mode 100644
index 0000000000..10dd7d2d5a
--- /dev/null
+++ b/testsuite/reftests/label-max-width-chars-and-halign-and-infinite-width.ui
@@ -0,0 +1,20 @@
+
+
+
+ 0
+ 200
+
+
+ start
+ end
+ ABCDE ABCD
+ 0.0
+ 1
+ 4
+
+
+
+
+
+
+
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index d4322f5c63..6cad66c535 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -314,6 +314,8 @@ testdata = [
'label-fonts.css',
'label-fonts.ref.ui',
'label-fonts.ui',
+ 'label-max-width-chars-and-halign-and-infinite-width.ui',
+ 'label-max-width-chars-and-halign-and-infinite-width.ref.ui',
'label-shadows.css',
'label-shadows.ref.ui',
'label-shadows.ui',