W3C home > Mailing lists > Public > www-archive@w3.org > January 2016

RE: Abspos, alignment, and degenerate grids

From: Peter Salas <psalas@microsoft.com>
Date: Wed, 20 Jan 2016 23:50:58 +0000
To: fantasai <fantasai@inkedblade.net>, Rossen Atanassov <Rossen.Atanassov@microsoft.com>, Greg Whitworth <gwhit@microsoft.com>, "www-archive@w3.org" <www-archive@w3.org>, Tab Atkins Jr. <jackalmage@gmail.com>
Message-ID: <BY2PR0301MB2102BE4BEC6FE8E9A412E9DEDDC20@BY2PR0301MB2102.namprd03.prod.outlook.com>
On 1/20/2016 3:08 PM, fantasai wrote:
> On 01/20/2016 12:08 PM, Peter Salas wrote:
> > [T]he question is about this case:
> >
> > <div style="display:grid; position:relative; justify-content:center"> 
> > <span style="position:absolute; grid-column:1">B</span> </div>
> >
> > And how the absolutely positioned element is aligned.  In the spec, 
> > absolutely positioned elements do not create implicit tracks, and so 
> > there seems to be no track in which to align the <span>.  
> >
> > [W]hy doesn't this sentence in section 10.1 apply?
> >
> > "If a grid-placement property refers to a non-existent line either by 
> > explicitly specifying such a line or by spanning outside of the 
> > existing implicit grid, it is instead treated as specifying ‘auto’
> > (instead of creating new implicit grid lines)."
> 
> Well, the issue is that, in response to another issue, we added some wording that makes grid line #1 always exist. See the very bottom of:
> https://lists.w3.org/Archives/Public/www-style/2015May/0139.html

> in response to Mats' Q3 in
> https://lists.w3.org/Archives/Public/www-style/2015Mar/0448.html


Even if grid line #1 exists, there's no end line (i.e. track) for the abspos item, right?  So doesn't it still "span outside of the existing implicit grid"?

Peter
Received on Wednesday, 20 January 2016 23:54:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 20 January 2016 23:54:10 UTC