I'm building a website and I would like to include different versions of my style sheet based on the document mode the browser is in (not the browser mode).
For example of the documentmode = ie8 I might want to load main_ie8.css but if the documentmode = ie9 I might want to load main_ie9.css
I have a number of users that run IE9 in compatibility mode. This defaults the document mode to ie7 standards. I use the following meta tag to force the document mode to IE9 standards in IE9:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
The problem is the browser mode is still set to IE compatibility. So the user agent is still set to IE7.
Since there is no way on the server side to determine the document mode the browser is running in and conditional comments are also based on the browser mode not the document mode, how can I load my css files based on the document mode rather than the browser mode.