Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes the `input[type="radio"]:checked + label::before` selector was for sure used a lot in the past for greater browser compatibility.

But in 2019 I think it is safe to style the radio element directly along with vendor prefixed `appearance: none;` possibly inside an `@supports` rule so that IE users will fall back to the native style while users of modern browsers get a custom style.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: