From 4f1ba6d2c029e2f1026766f755ffffe0a6ed972a Mon Sep 17 00:00:00 2001 From: Roma Zvarich Date: Sun, 18 Jul 2021 14:18:00 +0300 Subject: Перевод "Validitystate" и дочерних статей (#1531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 'ValidityState' topic * 'badInput' topic * 'patternMismatch' topic * 'range overflow' article * 'range underflow' article * 'step mismatch' article * 'Too long' article * 'Too short' article * 'Type mismatch' article * 'Read only' fix * Typo fix * Update files/ru/web/api/validitystate/badinput/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/badinput/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/stepmismatch/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/toolong/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/typemismatch/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/typemismatch/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> * Update files/ru/web/api/validitystate/typemismatch/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> --- .../api/validitystate/rangeunderflow/index.html | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 files/ru/web/api/validitystate/rangeunderflow/index.html (limited to 'files/ru/web/api/validitystate/rangeunderflow') diff --git a/files/ru/web/api/validitystate/rangeunderflow/index.html b/files/ru/web/api/validitystate/rangeunderflow/index.html new file mode 100644 index 0000000000..38fa11c8c8 --- /dev/null +++ b/files/ru/web/api/validitystate/rangeunderflow/index.html @@ -0,0 +1,38 @@ +--- +title: ValidityState.rangeUnderflow +slug: Web/API/ValidityState/rangeUnderflow +tags: + - API + - Constraint Validation API + - DOM + - Свойство + - Справочник +browser-compat: api.ValidityState.rangeUnderflow +--- +

Доступное только для чтения свойство rangeUnderflow объекта ValidityState указывает, соответствует ли значение {{HTMLElement("input")}} после изменения пользователем ограничениям, установленным атрибутом min.

+ +

Если поле является числовым, включая типы {{HTMLElement("input/date", "date")}}, {{HTMLElement("input/month", "month")}}, {{HTMLElement("input/week", "week")}}, {{HTMLElement("input/time", "time")}}, {{HTMLElement("input/datetime-local", "datetime-local")}}, {{HTMLElement("input/number", "number")}}, {{HTMLElement("input/range", "range")}} и заданно значение атрибута min, если содержимое поля не соответствует ограничению атрибута min, свойство rangeUnderflow будет true.

+ +

Учитывая следующее:

+ +
<input type="number" min="20" max="40" step="2"/>
+ +

если value < 20, rangeUnderflow будет true. Если true, элемент соответствует CSS-псевдоклассам {{cssxref(":invalid")}} и {{cssxref(":out-of-range")}}.

+ +

Спецификации

+ +{{Specifications}} + +

Совместимость с браузерами

+ +

{{Compat}}

+ +

Смотрите также

+ + -- cgit v1.2.3-54-g00ecf