5 input ~ label {color: red}
6 input[checked]:checked ~ label {color: green}
7 input[checked]:checked:not(:default) + label {color: red}
10 <body onload='var e1 = document.getElementById(
"one");
11 var l1 = document.getElementById(
"l1");
12 e1.parentNode.removeChild(e1);
13 l1.parentNode.removeChild(l1);
14 document.getElementById(
"two").setAttribute(
"checked",
"true");'
>
16 <input type=
"radio" name=
"group1" id=
"one" value=
"1" default=
"true" checked
/>
17 <label id=
"l1" for=
"one">Should be no red
</label><br>
18 <input type=
"radio" name=
"group1" id=
"two" value=
"2"/>
19 <label for=
"two">Should be no red
</label>
20 <input type=
"radio" name=
"group1" id=
"three" value=
"3"/>
21 <label for=
"three">Should be no red
</label>