JSFiddle - React, Tailwind, and code Playground
HTML
<div class="without-cleartype">
box without cleartype
</div>
<div class="with-cleartype">
box with cleartype
<!--[if lte IE 9]>
<span class="after"> </span>
<![endif]-->
</div>
CSS
div {
width: 80%;
margin: 0 auto;
height: 50px;
text-align: center;
text-transform: uppercase;
font: bold 10px/5 Arial, Helvetica, sans-serif;
}
div + div {
margin-top: 20px;
}
.without-cleartype,
.with-cleartype .after {
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff000
', endColorstr='#ffff88',GradientType=0 );
}
.with-cleartype {
z-index: 1;
position: relative;
}
.with-cleartype .after {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
}