diff --git a/html/rendering/widgets/button-layout/computed-style.html b/html/rendering/widgets/button-layout/computed-style.html index 696b551bae37c5..764e0844069af0 100644 --- a/html/rendering/widgets/button-layout/computed-style.html +++ b/html/rendering/widgets/button-layout/computed-style.html @@ -24,6 +24,11 @@ if (el instanceof HTMLInputElement && val === 'contents') { expectedVal = 'none'; // https://drafts.csswg.org/css-display/#unbox-html } + if (val == 'flow') { + // Use the more backwards-compatible form, `block` is better than `flow` + // https://drafts.csswg.org/cssom/#serializing-css-values + expectedVal = 'block'; + } assert_equals(getComputedStyle(el).display, expectedVal); }, `computed display of ${tag} with display: ${val}`); });