I have some unexplained weirdness with a nested DIV's margin "leaking" out of the parent container .
The following test case* probably explains it best:
The outer wrapper (red) doesn't start at the very top - unless there's a text node or overflow: auto;
on that element.
(Tested on Firefox and Safari.)
While overflow allows me to work around the issue, I'd quite like to know why it is happening in the first place. Any insights would be appreciated!
* it's a minimal test case except for the script at the bottom, which merely illustrates the workarounds