Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<title>:indeterminate and input type=radio</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="indeterminate-radio-group-ref.html">
<style>
input:checked + label {
background: green;
}
input:indeterminate + label {
background: red;
}
</style>
<form>
<input type="radio" name="a" id="one" value="1">
<label for="one">One</label>
<input type="radio" name="a" id="two" value="2" checked>
<label for="two">Two</label>
<input type="radio" name="a" id="three" value="3">
<label for="three">Three</label>
<input type="radio" name="a" id="four" value="4">
<label for="four">Four</label>
</form>