Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Conditional Comments are ignored #15

Open
rvock opened this issue Feb 11, 2015 · 3 comments
Open

Conditional Comments are ignored #15

rvock opened this issue Feb 11, 2015 · 3 comments

Comments

@rvock
Copy link

rvock commented Feb 11, 2015

I have a seperate stylesheet for IE8, which I load using Conditional Comments:

<!--[if gt IE 8]><!--><link rel="stylesheet" href="static/page.css"><!--<![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="static/page-ie.css"><![endif]-->

IE8 Linter checks page.css instead of page-ie.css

@etodanik
Copy link
Owner

etodanik commented Feb 11, 2015 via email

@rvock
Copy link
Author

rvock commented Feb 11, 2015

Sorry, my first comment was not formated correctly. You could not see the conditional comments correctly. I've updated my post.

Now you can see, that I have two conditional comments. The first is only visible for IE > 8 and the second is only visible for IE <= 8. This prevents IE8 from loading the first stylesheet. So you do not need to check the first stylesheet.

@etodanik
Copy link
Owner

I see, yes - that's possible to support. I'll look into it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants