dom-ie-style.js revision 75c20fec8bf0a1a5a4aec4cda3037634e7af141c
/**
* Add style management functionality to DOM.
* @module dom
* @submodule dom-style
* @for DOM
*/
var CLIENT_TOP = 'clientTop',
CLIENT_LEFT = 'clientLeft',
PARENT_NODE = 'parentNode',
RIGHT = 'right',
HAS_LAYOUT = 'hasLayout',
PX = 'px',
FILTER = 'filter',
FILTERS = 'filters',
OPACITY = 'opacity',
AUTO = 'auto',
CURRENT_STYLE = 'currentStyle';
// 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;
},
}
}
}
};
}
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)
var ComputedStyle = {
CUSTOM_STYLES: {},
var value = '',
} 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,
var IEComputed = {};
// TODO: top, right, bottom, left
}
Y.namespace('DOM.IE');