Based on the border-radius.htc originally by Remiz Rahnas - http://www.htmlremix.com - Published date: 2008/09/24 Changes by Nick Fetchak: - IE8 standards mode compatibility - VML elements now positioned behind original box rather than inside of it - should be less prone to breakage Published date : 2009/11/18 Changes by Tom Butler (http://r.je : tom@r.je ) - Now allows the
element to have border-radius applied - Added dwestp...@filesmania.de's fix for (partial) background-position support - Fixed issue where adding a border to a div with a background image would incorrectly position the background image (by the size of the border) - Fixed issue where background fill would be black in nested elements that had border-radius applied - Fixed issue on 3 levels of nesting by changing to ondocumentready instead of oncontentready - Separated out code into smaller functions in an attempt to make further CSS3 effect additions easier. Use createUnderlay() to create the base VML element underneath the target for any effect to be applied to. - Added support for box-shadow - Added a better, more easily forward compatible window_resize function - Added atg2dg's implementation of border-top-right-radius from http://code.google.com/p/curved-corner/issues/detail?id=22 - Added element.redraw() function to elements which can be called by javascript to allow dynamic resizing of the element. - Added hover support (not for IE6, also slower than I'd like) - Will now automatically redraw the element when it changes (e.g. is resized in javascript. Will be slow if the change affects document flow. I don't suggest doing this in a timeout). - Fixed a z-index issue where effects would be hidden on elements with relative/absolute positioned parents that were overlapping static elements - Added basic linear gradient support, can't read existing -moz-gradient or -webkit-gradient as they are part of the background property and IE ignores them. Usage: -css3-background: linear-gradient(90deg,blue,red); Currently only supports this format. - Did a lot of code restructuring to make it more extensible, still needs a bit of tidying up though. - Made it so you to initialise it you just add html {behavior:url('css3.htc');} to the top of your stylesheet. Published date: 2010/09/28 Updates 11/10/2010 Complete reststructure of the code now easier to work with in future 17/11/2010 Heavily improved IE6 support for border-radius This is still a work in progress, I'm slowly tidying up the code and adding features.