Last active
August 29, 2015 13:57
-
-
Save ryanand26/9830443 to your computer and use it in GitHub Desktop.
Basic Trident test
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> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Trident Test</title> | |
<style> | |
.test-block { | |
background: green; | |
margin: 10px; | |
height: 50px; | |
width: 150px; | |
} | |
.test-item { | |
background: red; | |
color: #000; | |
min-height: 50px; | |
} | |
.test-block > #child-selector-test { | |
display: none; | |
} | |
#before-selector-test { | |
position: relative; | |
z-index: 0; | |
} | |
#before-selector-test:before { | |
background: green; | |
content: " "; | |
left: 0; | |
top: 0; | |
height: 50px; | |
right: 0; | |
position: absolute; | |
z-index: 2; | |
} | |
#opacity-test { | |
opacity: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Trident Test</h1> | |
<p>Red blocks show that a feature is not supported.</p> | |
<h2>Child selector - IE 6 fails</h2> | |
<div class="test-block"> | |
<div id="child-selector-test" class="test-item"> | |
child selector not supported | |
</div> | |
</div> | |
<h2>:before - IE7 fails</h2> | |
<div class="test-block"> | |
<div id="before-selector-test" class="test-item"> | |
</div> | |
</div> | |
<h2>Opacity - IE8 fails</h2> | |
<div class="test-block"> | |
<div id="opacity-test" class="test-item"> | |
Opacity not supported | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment