add prototype to detect ie11 css bundles
This commit is contained in:
parent
942edf69c7
commit
991f5fee4c
3 changed files with 23 additions and 0 deletions
17
prototypes/detect-ie11-css.html
Normal file
17
prototypes/detect-ie11-css.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" type="text/css" href="non-ie11.css" media="not all and (-ms-high-contrast: none), (-ms-high-contrast: active)">
|
||||||
|
<link rel="stylesheet" type="text/css" href="ie11.css" media="all and (-ms-high-contrast: none), (-ms-high-contrast: active)">
|
||||||
|
<style type="text/css">
|
||||||
|
/*
|
||||||
|
can't make this work in non-IE browser for now...
|
||||||
|
*/
|
||||||
|
@import url('non-ie11.css') screen @supports(--foo: green);
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Velit dignissim sodales ut eu sem integer vitae justo eget. Libero justo laoreet sit amet cursus sit amet dictum. Egestas fringilla phasellus faucibus scelerisque eleifend donec pretium vulputate. Quis eleifend quam adipiscing vitae proin sagittis nisl. Egestas maecenas pharetra convallis posuere morbi leo. Metus dictum at tempor commodo ullamcorper a lacus. Odio pellentesque diam volutpat commodo sed egestas egestas. Elementum eu facilisis sed odio morbi quis commodo odio aenean. Velit euismod in pellentesque massa placerat duis ultricies lacus sed. Feugiat sed lectus vestibulum mattis ullamcorper velit sed ullamcorper morbi. Pulvinar etiam non quam lacus suspendisse. Dictumst vestibulum rhoncus est pellentesque elit ullamcorper dignissim. Proin gravida hendrerit lectus a. Nibh sed pulvinar proin gravida. Massa placerat duis ultricies lacus. Enim sed faucibus turpis in eu mi bibendum neque egestas. Turpis egestas sed tempus urna et pharetra pharetra.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
3
prototypes/ie11.css
Normal file
3
prototypes/ie11.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
p {
|
||||||
|
color: red;
|
||||||
|
}
|
3
prototypes/non-ie11.css
Normal file
3
prototypes/non-ie11.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
p {
|
||||||
|
color: green;
|
||||||
|
}
|
Reference in a new issue