Skip to content

Commit

Permalink
Subtract combobox display frame border-padding when inferring the hei…
Browse files Browse the repository at this point in the history
…ght from line-height.

This fixes it and seems to be an acceptable fix... Should I make it conditional
on box-sizing: border-box for completeness?  The display frame has border-box
box-sizing, and not having it would be a bug, I'd think...

Differential Revision: https://phabricator.services.mozilla.com/D41939

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1571764
gecko-commit: bd44d2dd0c02c1e2ab10e73695ee3ef1da971aa6
gecko-integration-branch: autoland
gecko-reviewers: mats, jfkthame
  • Loading branch information
emilio authored and moz-wptsync-bot committed Aug 14, 2019
1 parent 464774c commit ade474e
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1571764">
<style>
div {
-webkit-appearance: none;
appearance: none;

background: black;
color: black;

line-height: 100px;
width: 100px;

border: 0;
padding: 0;

display: inline-block;
}
</style>
<div>A</div>
<div>A</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1571764">
<link rel="match" href="select-1-block-size-001-ref-2.html">
<style>
button {
-webkit-appearance: none;
appearance: none;

background: black;
color: black;

line-height: 100px;
width: 100px;

border: 0;
padding: 0;
}
</style>
<button>A</button>
<button>A</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<title>Select block size when line-height is specified</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1571764">
<link rel="match" href="select-1-block-size-001-ref.html">
<style>
select {
-webkit-appearance: none;
appearance: none;

background: black;
color: black;

line-height: 100px;
width: 100px;

border: 0;
padding: 0;
}
</style>
<select></select>
<select><option>A</option></select>

0 comments on commit ade474e

Please sign in to comment.