When two or more margins collapse, the resulting margin width is the maximum of the collapsing margins' widths. In the case of negative margins, the maximum of the absolute values of the negative adjoining margins is deducted from the maximum of the positive adjoining margins. If there are no positive margins, the maximum of the absolute values of the adjoining margins is deducted from zero.
Created attachment 357440 [details] Patch
I checked with BugID on Webkit GitHub and it seems this r+ patch didn't landed. Thanks!