I use javascript script to align certain elements using offsets. Offsets are calculated depending on browser type because they behave differently. In IE9, getting child elements in the DOM or calculating certain offsets, the behavior is different if IE9 is in IE9 browser mode or IE9 compatible view browser mode.
How do I detect if the Browser mode is in "Internet Explorer 9 compatibility View"? This mode is set by the user in developer tools (F12) Browser Mode menu option.