Conditional comments!
To keep it short - IE doesn’t walk along well with other modern web browsers. Many features of HTML5
and CSS3
are either partially implemented or not provided at all. See the comparison for yourself.
Let me list out some of the stuff IE9
doesn’t support:
- Application Cache (offline)
- Web Workers (threads in JavaScript)
- HTML5 Forms (validation mechanism, CSS3 selectors)
- JavaScript Strict Mode
- WebGL (3D)
- CSS3 Transitions (for animations)
- CSS3 Text Shadow
- CSS3 Gradients
- CSS3 Border Image
- CSS3 Flex box model
- ClassList APIs
- FormData
- HTML5 History API
- Drag’n Drop from Desktop
Since it has substantial amount of users, it becomes inevitable to ignore it. Also tools like Modernizr
makes it easy for you to write conditional JavaScript and CSS to handle each situation, whether a browser supports a feature or not.
These conditional comments are only supported till IE9
(from IE5
). So if you need special CSS styles for IE10
or up you’ll have to find another method, since conditional comments are disabled in IE10
.
Conditional linking to stylesheets
Check here IE10 Detection