Skip to content

Instantly share code, notes, and snippets.

@ryanand26
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanand26/9830443 to your computer and use it in GitHub Desktop.
Save ryanand26/9830443 to your computer and use it in GitHub Desktop.
Basic Trident test
<!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