margin support in IE vs NS vs spec

I notice that both IE and Netscape seem to treat margins
in a funny way when applying them to inline elements.

Source:
  Before before before. <span style="margin-left: 1cm">This is
  inside the span. I have to make this part long in order
  to make the example make sense.</span> After after after.

as rendered on IE4:
  Before before before. This is inside. I have to make this part
       long in order to make the example make sense. After
  after after.

Netscape renders it similarly, except that the sentence starting
with "This is inside" actually moves left so that it starts
1cm from the edge of the canvas and overlaps the text which
came before it.

My reading of the spec suggests that the proper rendering
for margins on inline elements is thus:

                     1cm of space
                         |
                         V
  Before before before.      This is inside. I have to make
  this part long in order to make the example make sense. After
  after after.

Is my understanding correct?

-Sho

Received on Wednesday, 2 July 1997 17:41:40 UTC