Closed caged closed 14 years ago
Ah yes, the nested conditionals. This needs to be documented better because it's come up a couple of times before (Issue #24 and #10, for reference). I'll put that on the todo-list.
The gist of it is that you can disable asset embedding on a per-package basis, as you'd want to do for browser-specific overrides. So change your snippet to:
<!--[if IE 6]>
<%= include_stylesheets :ie6, :embed_assets => false %>
<![endif]-->
And you're off to the races. Let me know if that doesn't work for you.
We're looking into the possibility of using Jammit on Tender and Lighthouse and I've run into an issue with embedded assets and conditional comments.
We already have some Internet Explorer specific stylesheets, so this means we'll have markup like this:
This works fine until you turn on embedded assets. You end up with nested conditional comments and the IE mhtml stylesheets are included in other browsers such as Safari and Firefox. Below is what we end up with.
Are there workarounds for this or perhaps I'm doing something wrong?