JQuery Combined Correction

jQuery has an opacity correction when you use the css method (lines 4592-4608 on jQuery 1.4.2):

    // IE uses filters for opacity
    if ( !jQuery.support.opacity && name === "opacity" ) {
        if ( set ) {
            // IE has trouble with opacity if it does not have layout
            // Force it by setting the zoom level
            style.zoom = 1;

            // Set the alpha filter to set the opacity
            var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
            var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
            style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
        }

        return style.filter && style.filter.indexOf("opacity=") >= 0 ?
            (parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "":
            "";
    }

I began to extend this behavior to turn css 3 selectors into compatibility with several browsers (using the set of recipes which the Compass infrastructure implemented ).

Is there a project that is already doing this?

+3
source share
1 answer

There are various projects that cover various aspects of CSS3. AFAIK there is no decent unified project.

I am currently using: http://plugins.jquery.com/project/2d-transform

CSS3. , .

: http://plugins.jquery.com/project/corners

+1

Source: https://habr.com/ru/post/1761841/


All Articles