dom-ie-style.js revision b55b141ccc709c4288c8b28cf63eb829101418e3
/**
* Add style management functionality to DOM.
* @module dom
* @submodule dom-style
* @for DOM
*/
var CLIENT_TOP = 'clientTop',
CLIENT_LEFT = 'clientLeft',
HAS_LAYOUT = 'hasLayout',
PX = 'px',
FILTER = 'filter',
FILTERS = 'filters',
OPACITY = 'opacity',
AUTO = 'auto',
_getStyleObj = function(node) {
};
// use alpha filter for IE opacity
var val = 100;
try { // will error if no DXImageTransform
} catch(e) {
try { // make sure its in the document
} catch(err) {
}
}
return val / 100;
},
var current,
}
}
}
}
};
}
try {
} catch(e) { // IE throws error on invalid style set; trap common cases
} else {
}
}
};
} else {
}
}
};
}
// IE getComputedStyle
// TODO: unit-less lineHeight (e.g. 1.22)
ComputedStyle = {
CUSTOM_STYLES: {},
var value = '',
if (el) {
} else {
}
}
return value;
},
value = '';
value = 0;
}
// the difference is padding + border (works in Standards & Quirks modes)
}
}
} else { // convert units to px
}
if (!el.style[pixel] && !el.style[prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
}
}
},
// clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
var value = null;
}
switch(property) {
case BORDER_TOP_WIDTH:
break;
case BORDER_BOTTOM_WIDTH:
break;
case BORDER_LEFT_WIDTH:
break;
case BORDER_RIGHT_WIDTH:
break;
}
},
// use pixelRight to convert to px
var val = null,
return val;
},
var val,
val = 0;
} else {
}
},
var current;
}
},
return true;
}
});
}
},
}
},
//fontSize: getPixelFont,
IEComputed = {};
// TODO: top, right, bottom, left
}
Y.namespace('DOM.IE');