W3C home > Mailing lists > Public > www-style@w3.org > January 2008

CSS2.1: computed value of z-index

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 2 Jan 2008 12:54:07 -0800
Message-Id: <8DAA38BA-BDEC-4160-A8E0-C0DE088911AA@apple.com>
To: www-style@w3.org


z-index only applies to positioned elements, however, its computed  
value is "as specified". Since the computed value can be exposed to  
script via getComputedStyle(), I suggest that it would be more useful  
if the computed value is "as specified for positioned elements,  
otherwise auto" so that scripts get the value actually used.

[Side note: the spec also says "In future levels of CSS, other  
properties may introduce stacking contexts, for example 'opacity'."  
Does that mean z-index should apply to non-positioned elements  
affected by such properties? Hyatt tells me this is already an open  
question for CSS3.]

Received on Wednesday, 2 January 2008 20:54:18 UTC

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