{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/form-validity-pseudos",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "form-validity-pseudos",
    "name": "Form validity pseudo-classes",
    "description": "The form validity CSS pseudo-classes match <form> elements based on the constraints of a form field, such as validity (:valid, :invalid, :in-range, :out-of-range) and necessity (:optional or :required).",
    "group": "selectors",
    "groupName": "Selectors",
    "spec": "https://drafts.csswg.org/selectors-4/#ui-validity",
    "baseline": "high",
    "baselineLowDate": "2015-07-29",
    "baselineLowDay": 16645,
    "baselineHighDate": "2018-01-29",
    "compatCount": 8,
    "cats": [
      "css"
    ],
    "compatKeysSample": [
      "css.selectors.in-range",
      "css.selectors.invalid",
      "css.selectors.invalid.form",
      "css.selectors.optional",
      "css.selectors.out-of-range",
      "css.selectors.required",
      "css.selectors.valid",
      "css.selectors.valid.form"
    ],
    "s": {
      "chrome": {
        "v": "10",
        "d": 15041
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "4",
        "d": 15055
      },
      "firefox_android": {
        "v": "4",
        "d": 15062
      },
      "safari": {
        "v": "5",
        "d": 14767
      },
      "safari_ios": {
        "v": "5",
        "d": 15259
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "css.selectors.in-range",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:in-range",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-in-range",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "29",
          "d": 16189
        },
        "safari": {
          "v": "5.1",
          "d": 15175
        },
        "edge": {
          "v": "13",
          "d": 16751
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "16",
          "d": 15622
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "2.2",
          "d": 14749
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "11",
          "d": 14959
        },
        "opera_android": {
          "v": "11",
          "d": 15055
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "Before Chrome 52, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In Chrome 52, it was changed to only match enabled read-write inputs.",
          "b": [
            "chrome"
          ]
        },
        {
          "t": "Before Firefox 50, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://bugzil.la/1264157\">bug 1264157</a>). In Firefox 50, it was changed to only match enabled read-write inputs.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "In Safari, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://webkit.org/b/156530\">bug 156530</a>). It was later changed to only match enabled read-write inputs.",
          "b": [
            "safari"
          ]
        },
        {
          "t": "Before Chrome Android 52, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In Chrome Android 52, it was changed to only match enabled read-write inputs.",
          "b": [
            "chrome_android"
          ]
        },
        {
          "t": "In Safari on iOS, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://webkit.org/b/156530\">bug 156530</a>). It was later changed to only match enabled read-write inputs.",
          "b": [
            "safari_ios"
          ]
        },
        {
          "t": "Before version 52, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In version 52, it was changed to only match enabled read-write inputs.",
          "b": [
            "webview_android"
          ]
        },
        {
          "t": "In WebView on iOS, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://webkit.org/b/156530\">bug 156530</a>). It was later changed to only match enabled read-write inputs.",
          "b": [
            "webview_ios"
          ]
        },
        {
          "t": "Before version 6.0, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In version 6.0, it was changed to only match enabled read-write inputs.",
          "b": [
            "samsunginternet_android"
          ]
        },
        {
          "t": "Before Opera 39, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In Opera 39, it was changed to only match enabled read-write inputs.",
          "b": [
            "opera",
            "opera_android"
          ]
        },
        {
          "t": "Before Quest Browser 5.0, <code>:in-range</code> matched disabled and read-only inputs (see <a href=\"https://crbug.com/41248615\">bug 41248615</a>). In Quest Browser 5.0, it was changed to only match enabled read-write inputs.",
          "b": [
            "oculus"
          ]
        }
      ]
    },
    {
      "id": "css.selectors.invalid",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:invalid",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-invalid",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "4",
          "d": 15055
        },
        "safari": {
          "v": "5",
          "d": 14767
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "37",
          "d": 16316
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "10",
          "d": 14488
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      }
    },
    {
      "id": "css.selectors.invalid.form",
      "cat": "css",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-invalid",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "40",
          "d": 16456
        },
        "firefox": {
          "v": "13",
          "d": 15496
        },
        "safari": {
          "v": "9",
          "d": 16708
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "40",
          "d": 16456
        },
        "firefox_android": {
          "v": "14",
          "d": 15517
        },
        "safari_ios": {
          "v": "9",
          "d": 16694
        },
        "webview_android": {
          "v": "40",
          "d": 16456
        },
        "webview_ios": {
          "v": "9",
          "d": 16694
        },
        "samsunginternet_android": {
          "v": "4.0",
          "d": 16871
        },
        "opera": {
          "v": "27",
          "d": 16462
        },
        "opera_android": {
          "v": "27",
          "d": 16464
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      }
    },
    {
      "id": "css.selectors.optional",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:optional",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-optional",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "4",
          "d": 15055
        },
        "safari": {
          "v": "5",
          "d": 14767
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "37",
          "d": 16316
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "10",
          "d": 14488
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      }
    },
    {
      "id": "css.selectors.out-of-range",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:out-of-range",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-out-of-range",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "29",
          "d": 16189
        },
        "safari": {
          "v": "5.1",
          "d": 15175
        },
        "edge": {
          "v": "13",
          "d": 16751
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "16",
          "d": 15622
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "2.2",
          "d": 14749
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "11",
          "d": 14959
        },
        "opera_android": {
          "v": "11",
          "d": 15055
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      }
    },
    {
      "id": "css.selectors.required",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:required",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-required",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "4",
          "d": 15055
        },
        "safari": {
          "v": "5",
          "d": 14767
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "4.4.3",
          "d": 16223
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "10",
          "d": 14488
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      }
    },
    {
      "id": "css.selectors.valid",
      "cat": "css",
      "mdn": "CSS/Reference/Selectors/:valid",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-valid",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "10",
          "d": 15041
        },
        "firefox": {
          "v": "4",
          "d": 15055
        },
        "safari": {
          "v": "5",
          "d": 14767
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "18",
          "d": 15518
        },
        "firefox_android": {
          "v": "4",
          "d": 15062
        },
        "safari_ios": {
          "v": "5",
          "d": 15259
        },
        "webview_android": {
          "v": "37",
          "d": 16316
        },
        "webview_ios": {
          "v": "5",
          "d": 15259
        },
        "samsunginternet_android": {
          "v": "1.0",
          "d": 15822
        },
        "opera": {
          "v": "10",
          "d": 14488
        },
        "opera_android": {
          "v": "10.1",
          "d": 14922
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      }
    },
    {
      "id": "css.selectors.valid.form",
      "cat": "css",
      "spec": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-valid",
      "st": 1,
      "wf": "form-validity-pseudos",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "40",
          "d": 16456
        },
        "firefox": {
          "v": "13",
          "d": 15496
        },
        "safari": {
          "v": "9",
          "d": 16708
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "40",
          "d": 16456
        },
        "firefox_android": {
          "v": "14",
          "d": 15517
        },
        "safari_ios": {
          "v": "9",
          "d": 16694
        },
        "webview_android": {
          "v": "40",
          "d": 16456
        },
        "webview_ios": {
          "v": "9",
          "d": 16694
        },
        "samsunginternet_android": {
          "v": "4.0",
          "d": 16871
        },
        "opera": {
          "v": "27",
          "d": 16462
        },
        "opera_android": {
          "v": "27",
          "d": 16464
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      }
    }
  ]
}