Transparent text with text-shadow in IE

css, internet-explorer, transparent

Solution

You could just hide the text off the edge of the window/screen, consider adding a fallback for older versions of IE as well.

Working Example

.black-box {
    background: url(http://i44.tinypic.com/2rzwis3.jpg) no-repeat;
    padding: 20px;
}
span.shadow {
    font: 20px Arial;
    position: absolute;
    left:-100px;
    top:-100px;
    color: rgba(0, 0, 0, 1);
    text-shadow: 120px 120px 2px rgba(255, 255, 255, 1);
}

<!--[if lte IE 9]>
    <style>
    span.shadow {
        position: static;
        display:inline-block;
        font: 20px Arial;
        color: rgba(255, 255, 255, 1);
        filter:progid:DXImageTransform.Microsoft.Blur(pixelradius=2.25);
        }
    </style>
<![endif]-->

<div class="black-box"> 
    <span class="shadow">This is some text.</span>
</div>

Problem

When using `color: rgba(255,255,255,0.0);` in conjunction with `text-shadow: 0px 0px 2px rgba(255,255,255,1);`, Internet Explorer seems to inherit the transparency of the text-shadow from the text itself, causing the shadow not to appear at all. JSFiddle example (view in IE): http://jsfiddle.net/495dZ/1/ Is there a clever pseudo-class technique to work around this? Or maybe something using jQuery to achieve a similar effect?

Original source