Re: [css-grid] align/justify-self stretch

Hi,

On 09/07/2016 06:19 PM, fantasai wrote:
> On 09/06/2016 03:37 AM, oliver williams wrote:
>> It is a very common use case to want a background color or image to
>> take up the space of the entire grid-cell while wanting to
>> center text or a logo. Currently using any value other than stretch
>> with align-self, justify-self, align-items or justify
>> items will cause the background to stop taking up the entire
>> grid-cell. Could we not have a center-stretch value?
> 
> I think you want
>   align-self: stretch;
>   align-content: center;
> This might not yet be implemented, but it will eventually work.
> 

I'm not sure whether that's what the user asked for or not, but it's
indeed implemented in Chromium and WebKit based browsers
(behind experimental flags) and I'm pretty sure in Mozilla Nightly
builds as well.

Received on Wednesday, 7 September 2016 18:03:04 UTC