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: Sat, 19 Jul 2014 14:13:33 -0400
To: Greg Whitworth <gwhit@microsoft.com>, Alan Gresley <alan@css-class.com>, Pavel Curtis <pavelc@microsoft.com>
Cc: W3C www-style mailing list <www-style@w3.org>
Message-ID: <4eea09f397b587a0d00c24aa9ffd597f@gtalbot.org>
Le 2014-07-14 19:18, Greg Whitworth a écrit :


> _Chrome_:
> Absolute child that is block is strangely offset even when the
> inline-relative has left:0px;

I think the strange horizontal offset of the blue square you see in 
Chrome in the 2nd gray rectangle (the one with "relative with no offset" 
.. but it should say "relative with *auto* offset") is what the spec 
says and means by

The containing block of an element is defined as follows:
     If the element has 'position: absolute', the containing block is 
established by the nearest ancestor with a 'position' of 'absolute', 
'relative' or 'fixed', in the following way:
         In the case that the ancestor is an inline element, the 
containing block is *_the bounding box around the padding boxes of the 
first and the last inline boxes_* generated for that element.
§10.1 10.1 Definition of "containing block"

The "that element" means, is, refers to the (nearest positioned) inline 

What am I missing? Where am I wrong? ... just asking..

Received on Saturday, 19 July 2014 18:14:24 UTC

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