Bug 1873300: Add overflow:scroll to buttons in a WPT reference case, to match styling in testcase. r=emilio

`overflow:scroll` doesn't add scrollbars to buttons in Firefox right now (per
bug 1873301) but it does add them in other browsers, so we need to include it
in the reference case (matching the testcase) so that the reference case is
valid/robust.

This patch doesn't change the reference case's rendering in Firefox, but it
seems to be sufficient to make this WPT pass in other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D197832
This commit is contained in:
Daniel Holbert 2024-01-09 21:45:25 +00:00
parent 99c503d9ab
commit ed467eb996

View File

@ -28,6 +28,14 @@ body,html { color:black; background:white; font:16px/1 monospace; padding:0; mar
box-sizing: border-box;
}
.os {
/* Note: overflow:scroll does add scrollbars to the testcase's
empty buttons in some UAs, so we need to include this style
in the reference case to create a proper reference rendering
that's robust in the face of UAs that do/don't support
scrollable buttons. */
overflow: scroll;
}
.m { margin: 17px 3px 5px 7px; }
x { display:block; width:110px; height:5px; background:grey; }