firefox issue solved

width/height were 0, so used getComputedStyle if necessary + found
possible bug