Ahmed,

I'm sorry this thread has turned into a political discussion rather than 
the technical one it started as.  Truth is most everyone here is really 
fed up (rightly so) with stubborn people refusing to code to the 
standards, so that whenever someone questions those standards we tend to 
go berserk.  It's all very understandable but often gets in the way of 
good discussions.

So on to answering your question.

While I'm not a member of the working group and can't give you a 
definitive answer, here are a couple reasons I can think of that the 
current standard behavior makes the most sense:

1) This behavior ALLOWS the effect you're seeing.  While it may not be 
what you want in this case, it's actually a very useful thing to be able 
to do.  It allows you to "sandwich" in layers between children of the 
same element.  I ran into a problem in a site I was building the other 
day where the easiest way to build it would have needed this kind of 
sandwiching.  In Moz I was able to bring one (relatively positioned) 
child of an element to the top but leave the other child at the bottom, 
sandwiching an element from outside in between.  In IE both children 
were fixed to the same stacking context so I couldn't do this.

2) Consistency: As I pointed out earlier, these context rules directly 
parallel the rules for containing blocks in positioning, namely that the 
context in which an element's [position, z-index] is calculated depends 
on the nearest ancestor with its [position, z-index] specified.

These are just what I can think of off the top of my head.  If you want 
a more authoritative answer or want to ask about it getting changed, you 
might want to bring this up on [EMAIL PROTECTED] after searching the 
archives at http://lists.w3.org/Archives/Public/www-style to see if it's 
already been brought up.

If you find out anything interesting, please post it back to this 
newsgroup so we can all learn.

Regards
--J



ahmed wrote:
> Wow wow guys,, g it was only a Q,,
> 
> I call it the mozilla way and ie way because they have 2 different
> methods,..
> 
> and people stop being paranoid.. I'm totally pro Mozilla!
> 
> I'm discussing the validity of the w3c's choice!,, hey the spec is made FOR
> developers, to help make the net a better place! and since I am a developer,
> I think I have the right an opinion,...
> 
> Now, I don't care who does what in the w3c, I just think the way ie does the
> z-index thing makes more sense, maybe mozilla should point it out to the
> w3c(does mozilla have a place there or is it Netscape?) hey its like the
> innerHTML thing, its an IE developed spec, w3c doesn't have it, But mozilla
> adopted it because they thought its the right thing to do, AND the w3c
> (after recommendation from ms/and I think NS)is going to adopt it..
> 
> Now what's the big mistake I did, when saying that I like(me a web
> developer) the way ie lays out z-index?
> 
> hope the clarifies things!
> 


Reply via email to