RE: Abspos, alignment, and degenerate grids

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