They're special classes to help you author conditional styles. For instance, rgba
isn't supported in some older versions of Internet Explorer, so you may want to load a .png background image instead:
article {
background-image: rgba(255, 0, 0, .25);
}
.oldIE article {
background-image: url( 'faintRed.png' );
}
This is a contrived example, but it illustrates the intent behind these classes. Due to conditional comments around tags like <html>
, you can conditionally place a class like .oldIE
in the ancestral tree of elements, thus allowing you to create fallbacks for older versions of IE.
Conditional Comments no longer work in IE as of version 10. They're not longer needed given the parity of standards support found between Internet Explorer and other modern browsers.
These conditional classes were removed from the HTML5 Boilerplate in September of 2013.