Skip to content

Commit

Permalink
Bug 1872006 - Don't clip range input overflow. r=dholbert
Browse files Browse the repository at this point in the history
HTML spec issue / PR: whatwg/html#10025

Differential Revision: https://phabricator.services.mozilla.com/D197327
  • Loading branch information
emilio committed Dec 29, 2023
1 parent 359c619 commit a340e52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layout/style/res/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ input[type=color] {
}

/* https://github.com/whatwg/html/issues/9976 */
input:not([type=image i]) {
input:not([type=image i], [type=range i]) {
overflow: clip !important;
overflow-clip-margin: 0px !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ <h1>Input Range</h1>
"range type support on input element"
);

test(function() {
assert_equals(getComputedStyle(document.getElementById('range_basic')).overflow, "visible");
}, "range overflow styles");

test(
function() {
assert_equals(document.getElementById('range_basic').min, "0")
Expand Down

0 comments on commit a340e52

Please sign in to comment.