I\'ve been using John Resig\'s getStyle function from Pro JavaScript Techniques to get the style of elements:
getStyle
function getStyle(elem, name) {
Maybe your component can wrap the styles that it controls? Then when a style is set through the component the component knows what the user wants.