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

Re: [CSS2.1] Interop Issue in regards to fixed/absolute positioned children inside of inline-relative containers

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 15 Jul 2014 18:33:22 -0400
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Greg Whitworth <gwhit@microsoft.com>, www-style@w3.org
Message-ID: <cdd5d651cb025b7b366b02545c6b238e@gtalbot.org>
Le 2014-07-15 17:34, Boris Zbarsky a écrit :
> On 7/15/14, 5:28 PM, Greg Whitworth wrote:
>> The Y positioning of the absolute positioned inline element is 
>> consistent among all implementations as seen in "Relative with no 
>> offset."
> Yes, but why is it positioned there?

The orange vertical stripe (the <b> element is an inline-block 
non-replaced element) causes the height of the line box to be increased 
(from 19px-20px to 50px): that's why the small green square is 
vertically positioned there: the top of the small green square is flush 
with the topmost part of the vertical orange stripe.


> That seems wrong to me per the
> letter of the spec.
>> I believe this is correct since setting it to absolute is pulling it 
>> out of the flow but keeping it in the same position by default.
> Yes, but its "same position" should be between the "inside1" and
> "inside2" text (and in particular vertically aligned with them).

> I
> assume all implementations are taking some sort of shortcut here that
> ends up with them mispositioning it....
> -Boris
Received on Tuesday, 15 July 2014 22:33:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:44 UTC