I have the following pseudo-element:
input[type=radio].selected::before
In Internet Explorer, the pseudo-element does not appear at all, so I decided to take a look. I find the selector in the inspector (the selector in the inspector will be a great children's book!) But all the properties are clogged. (i.e. rewritten / invalid). Most attributes are not overridden by other attributes. Is this the default behavior in IE, or does this mean that the style does not work at all and, more importantly, why they are not displayed? Below is the full css:
input[type=radio]{ visibility:hidden; cursor: pointer; width: 22px; height: 22px; } input[type=radio]::before{ content: ""; display: inline-block; visibility: visible; width: 16px; height: 16px; margin-bottom: 0; border: 1px solid #ddd; -moz-border-radius:8px; border-radius:8px; font-size: 41px; line-height: 18px; padding-left: 1px; color: #a3a3a3; }
source share