Location: PHPKode > scripts > CSS Crush > peteboere-css-crush-0b51f2e/plugins/ie-min-height.php
<?php
/**
 * Fix min-height in IE 6
 * 
 * @before
 *     min-height: 100px;
 * 
 * @after
 *     min-height: 100px;
 *     _height: 100px;
 */

csscrush_hook::add( 'rule_postalias', 'csscrush__ie_min_height' );

function csscrush__ie_min_height ( csscrush_rule $rule ) {

    if ( $rule->propertyCount( 'min-height' ) < 1 ) {
        return;
    }
    $new_set = array();
    foreach ( $rule as $declaration ) {
        $new_set[] = $declaration;
        if ( 
            $declaration->skip ||
            $declaration->property !== 'min-height' ) {
            continue;
        }
        $new_set[] = new csscrush_declaration( '_height', $declaration->value );
    }
    $rule->declarations = $new_set;
}
Return current item: CSS Crush