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

RE: clarification for display vs. position

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Thu, 26 Jul 2007 17:10:09 -0700
To: Boris Zbarsky <bzbarsky@mit.edu>, "L. David Baron" <dbaron@dbaron.org>, Markus Mielke <mmielke@windows.microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>, "w3c-css-wg@w3.org" <w3c-css-wg@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526FECF6A76E00@DF-GRTDANE-MSG.exchange.corp.microsoft.com>
Continuing on www-style. As David pointed it is a better place for questions like this, I agree.

To recap, the question is where the "auto" position is for an absolutely position element is. Does depend on "display" property?

I sense an agreement so far that

* display:inline, display:inline-block should behave same, "auto" position is as if it were a zero-width inline element
* display:block has "auto" position on the next line, left or right aligned according to flow direction and alignment

The above rules are not precise and subject to subtle special cases but it seems to be the intent?

Are we in fact in agreement? Safari already does it that way. Does somebody from Opera want to chime in?

-----Original Message-----
From: w3c-css-wg-request@w3.org [mailto:w3c-css-wg-request@w3.org] On Behalf Of Boris Zbarsky
Sent: Wednesday, July 25, 2007 10:48 AM
To: L. David Baron
Cc: w3c-css-wg@w3.org
Subject: Re: clarification for display vs. position


L. David Baron wrote:
>> * IE7 ignores the original "display" value

A quick and dirty test indicates that this is indeed the case and that
positioning is always done as if the original value were "inline".

I suspect that we could make this change in Gecko, for what it's worth.  It'd
definitely simplify some code!

>> * Opera and Gran Paradiso put "inline-block" and "block" on the next line

Even if we want to keep track of the original display, doing that for
inline-block just seems like a bug.

> I'd thought we added the code to consider the original display value
> to emulate IE/Windows.  [1] suggests that's not the case, but [2]
> suggests it is.

In [2] we basically changed a case where we used to put things on the next line
and changed it to not do that under the conditions of the testcase.  IE seems to
never put things on the next line.

> But they'd probably have seen it without me if you'd posted it to www-style

Amen.

-Boris


Received on Friday, 27 July 2007 00:10:23 GMT

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