Files
sousa-gecko/testing/web-platform/tests/html/rendering/widgets/button-layout/scrollable-button-centering.html
T
Emilio Cobos Álvarez 24ea549f78 Bug 1977669 - Scrolled button frames should still be centered and baseline aligned to the content box. r=dholbert
Avoid the scroll container special-case for inline-blocks for them, and
allow a ::-moz-scrolled-content button box to still center-align its
contents.

Differential Revision: https://phabricator.services.mozilla.com/D257664
2025-07-18 07:28:31 +00:00

17 lines
648 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Scrollable buttons are center-aligned and derive a baseline from their contents</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.com" title="Mozilla">
<link rel="help" href="https://html.spec.whatwg.org/#button-layout">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1977669">
<link rel="match" href="scrollable-button-centering-ref.html">
<style>
button {
height: 5em;
}
</style>
<button style="overflow: hidden">ABC</button>
<button>ABC</button>
<button style="overflow: auto">ABC</button>