W3C home > Mailing lists > Public > www-style@w3.org > July 2005

[css21] stacking order on non-replaced, inline boxes

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sun, 31 Jul 2005 13:58:09 +0200
Message-ID: <20050731135809.nt9la26cglc08ggg@webmail.annevankesteren.nl>
To: www-style@w3.org

Say you have the following HTML snippet:

# <div><span>xxxx</span>xx</div>

Inside the DIV element there are two boxes. An inline element and an anonymous
inline box that is (the next) sibling of it. Styles applied:

# div { font:15px/1 Ahem; }
# span { margin-right:-4em; color:blue; background:maroon }

Implementations agree that the SPAN element is placed behind the anonymous
inline box. I would very much like to know where it is specified that this is
the correct behavior.

Testcase: <http://annevankesteren.nl/test/css/margin/001>

Anne van Kesteren
Received on Sunday, 31 July 2005 11:58:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:19 UTC