I have IE 11. I'm making the following conditional comment for my html:
<!--[if (lt IE 9)]>
<div style="background-color: black; width: 200px; height: 400px;"></div>
<![endif]-->
Then I'm trying to check if it works via IE built-in emulation, setting both document mode and user agent string options to IE 8 or IE 7. The block in the comment is not displayed, but the comment disappears at the same time from html.
Is it something wrong with the code or with emulation?
Remove brackets
is enough
There is a great article by Paul Irish, conditional-stylesheets-vs-css-hacks-answer-neither it is worth reading for sure.