Last active
August 29, 2015 13:56
-
-
Save necolas/8969492 to your computer and use it in GitHub Desktop.
Problem with extracting IE-specific CSS into separate stylesheet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.a { | |
background: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.a { | |
background: linear-gradient(red, orange); | |
} | |
.b { | |
background: green; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<link rel="stylesheet" href="generated-main.css"> | |
<!--[if IE < 10]><link rel="stylesheet" href="generated-ie-only.css"><![endif]--> | |
<div class="a b"> | |
has GREEN background in non-ie | |
has RED background in IE because cascade resolution is different due to source order change | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.a { | |
-ie-background: red; | |
background: linear-gradient(red, orange); | |
} | |
.b { | |
background: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment