W3C home > Mailing lists > Public > www-style@w3.org > September 1999

Do overlapping statically positioned elements "obscure" each other

From: Ian Graham <igraham@smaug.java.utoronto.ca>
Date: Thu, 16 Sep 1999 10:06:39 -0400
To: www-style@w3.org
Message-ID: <Pine.SGI.4.05.9909160946580.11163-100000@smaug.java.utoronto.ca>
Hi --

Sorry to ask this here, but I've spent a good 45 minutes in the CSS2
spec, and can't find the answer...

The question is: Given two subsequent block element, eg A followed by B.
Both elements have content and background colors, and are statically
positioned.  Margins are used so that B is "backed up" to overlap A.
Should the background color of "B" obscure/hide the content of A? (I
believe it should)

In other words, does the implicit stacking order always put background
colors and images behind all element content, or is the implicit stacking
order for siblings of the form

   B1 < C1 < B2 < C2 ...

where 1, 2, etc. refer to subsqent sibling elements and B, C refer to
the element's background and 'content', and  B1 < C1 means "B1 is behind
C1"?

Ian
--
Ian Graham ......................... Centre for Academic Technology
i a n   d o t   g r a h a m    a t    u t o r o n t o   d o t   c a
..................... http://www.utoronto.ca/ian/ .................
Received on Thursday, 16 September 1999 10:06:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:00 GMT