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

[css-grid][css-align] Issues with align-content / justify-content properties

From: Javier Fernandez <jfernandez@igalia.com>
Date: Wed, 05 Nov 2014 22:47:08 +0100
Message-ID: <545A9ADC.3000006@igalia.com>
To: www-style@w3.org

I'm working on the implementation of the align-content and
justify-content properties for grid and it seems ISSUE6 is still
pending; I've already made some assumptions for the ongoing
implementation but it'd be great to solve it as soon as possible.

 - http://dev.w3.org/csswg/css-align-3/#issue-dda0e769

I'm assuming 2 different interpretations depending on the kind if value
used for the alignment.

  - in case of <content-position> values, the 'alignment.container' is
the grid container and the 'alignment subject' is the box defined by the
grid tracks
  - in case of <content-distribution>,the 'alignment container' is the
grid track, while the grid items placed on it are the 'alignment subject' .

I'm not sure how to deal with items placed on the same Gird Cell or
occupying more than one row/column track when using content-distribution

It's also not clear to me which are the cases where content-distribution
values should fall-back to the corresponding content-position value.

I'm taking as available space the difference between the grid container
dimensions and the grid tracks breadth. When using the explicit grid
definition, it may contain empty cells, but I think they won't be
considered as available space. This implies that even using 'end' as
content-position value, there will be space between the last item and
the grid container; it may happen too with some content-distribution values.

Shouldn't these particular cases be described in the Grid spec ?


Received on Wednesday, 5 November 2014 21:47:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:48 UTC