зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1572923 - Add default size for vertical range input ::-moz-range-track pseudo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D43292 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3e05e8ace5
Коммит
a9c174c337
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
input[orient="horizontal"]::-moz-range-track {
|
||||
background-color: green;
|
||||
block-size: 0.2em;
|
||||
inline-size: 100%;
|
||||
}
|
||||
input[orient="vertical"]::-moz-range-track {
|
||||
background-color: green;
|
||||
inline-size: 0.2em;
|
||||
block-size: 100%;
|
||||
}
|
||||
</style>
|
||||
<input type="range" orient="horizontal">
|
||||
<input type="range" orient="vertical">
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
input::-moz-range-track {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<input type="range">
|
||||
<input type="range" orient="vertical">
|
|
@ -57,3 +57,4 @@ skip-if(Android) == range-border-background.html range-border-background-ref.htm
|
|||
== range-percent-intrinsic-size-2b.html range-percent-intrinsic-size-2b-ref.html
|
||||
|
||||
== auto-size.html auto-size-ref.html
|
||||
== range-track-bg.html range-track-bg-ref.html
|
||||
|
|
|
@ -917,11 +917,16 @@ input[type=range]::-moz-range-track {
|
|||
position: static !important;
|
||||
writing-mode: unset !important;
|
||||
direction: unset !important;
|
||||
block-size: 0.2em;
|
||||
block-size: 0.2em; /* same as inline-size below */
|
||||
/* Prevent nsFrame::HandlePress setting mouse capture to this element. */
|
||||
user-select: none !important;
|
||||
}
|
||||
|
||||
input[type=range][orient=vertical]::-moz-range-track {
|
||||
inline-size: 0.2em; /* same as block-size above */
|
||||
block-size: 100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Layout handles positioning of this pseudo-element specially (so that content
|
||||
* authors can concentrate on styling this pseudo-element without worrying
|
||||
|
|
Загрузка…
Ссылка в новой задаче