MDN suggests that margin-left: auto with position: absolute will set the left margin to 0, but that does not seem to be the case in practice. I am now wondering if it is a bug in the browser, or in the MDN documentation as my example seems to align to the right.
fixed or absolute
0, except if both margin-left and margin-right are set to auto.
This example has margin-left set to auto and margin-right unspecified (i.e. initial value of 0) and the left margin appears to be computed as taking the remaining space rather than 0 as suggested by the source above: https://jsfiddle.net/40txneL7
I have also found a snippet in the spec suggesting that the remaining space is divided between the auto margins, and not set to 0 if just one axis margin is set.
Is MDN documentation incorrect here, or am I missing something?
