I wanted to calculate the computed height of a list. On IE, these two give different results. On Chrome, the value seems to be always on integer, so I do not get this problem.
// gives a string of "353.7px"
window.getComputedStyle(mylist, null).getPropertyValue("height")
// gives an int of 354
$(mylist).height();
How come jQuery drops decimals, or is this a problem with IE?
EDIT I was actually lying. This happens with Chrome. See http://jsfiddle.net/jTPk9/