Dactyloidae/layout/reftests/forms/select/vertical-centering-ref.html
Moonchild bbbfa54ee4 Issue #1970 - Part 5: Move combobox/select padding to the select rule.
This doesn't change behavior by default but allows authors to remove the padding
previously enforced to align with focus ring padding, if they wish to.
2022-08-04 14:24:57 +08:00

20 lines
513 B
HTML

<!DOCTYPE html>
<style>
@font-face {
font-family: "Ahem";
src: url(../../fonts/Ahem.ttf);
}
select {
-moz-appearance: none;
border: none;
font: 20px/1 Ahem;
box-sizing: content-box;
/* The testcase has 20px-tall text, which should be centered in a 40px-tall
content-box (with 10px of extra space above and below). We emulate that
by having explicit 10px of padding on top and bottom. */
padding: 10px 0 10px 0;
}
</style>
<select>
<option>X</option>
</select>