Thursday 19 February 2009
SVG Filter Effects For Plain Old HTML
I forgot to mention this earlier, but Boris Zbarsky a while ago implemented SVG external document references, so that SVG features such as filter, mask, clipPath, use, fill, stroke, marker, and textPath can refer to elements in other documents. A nice benefit is that our support for SVG effects for HTML can now be very easily applied to Plain Old HTML documents. For example, check out this example in a Firefox 3.1 trunk build. The key piece of magic is
textarea {
filter:url(effects.xml#drop-shadow);
}
Comments
It's really great !
thanks!
When will we see it in a release?
OTOH Microsoft's filter feature was entirely their own invention, it did not reuse existing standards, its design and nomenclature was tailored around their DirectX code, they did not collect feedback from standards organizations or other vendors, they did not propose it for standardization, and they did not use a prefix despite having the opportunity to do so.