Skip to content

Commit

Permalink
Expect most compatible computed value for html/rendering/widgets/butt…
Browse files Browse the repository at this point in the history
…on-layout/computed-style.html
  • Loading branch information
nt1m authored and emilio committed Apr 19, 2021
1 parent b301b06 commit 25b079e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions html/rendering/widgets/button-layout/computed-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
Expand Down

0 comments on commit 25b079e

Please sign in to comment.