ramjet
ramjet copied to clipboard
use offsetParent for correct position of children of statically positioned nodes
not ready for merge
Wild things start happening when you transform descendants of statically positioned nodes, because the absolute positioning (which is necessary to avoid insane layout glitches) is calculated on the wrong basis (node.parentNode
rather than node.offsetParent
). This fixes that, but it introduces another bug – if you have transformed nodes between the offset parent and the transformed node, the transforms aren't correctly applied.