- From: Javier Fernandez Garcia-Boente via GitHub <sysbot+gh@w3.org>
- Date: Wed, 15 Feb 2017 21:35:57 +0000
- To: public-css-archive@w3.org
javifernandez has just created a new issue for
https://github.com/w3c/csswg-drafts:
== [css-align][css-grid] Baseline self-alignment may affect the
intrinsic size contribution of the alignment subject. ==
I'm having problems to implement this part of the CSS Box alignment
spec for Grid Layout:
https://drafts.csswg.org/css-align-3/#baseline-align-self
> When a box participates in first (last) baseline self-alignment, it
is aligned as follows: the minimum necessary extra space is added
between its start (end) edge and the alignment container edge to match
its alignment baseline in that axis up to that of its
baseline-sharing group. See ยง8.3 Aligning Boxes by Baseline. This may
increase the intrinsic size contribution of the alignment subject.
First of all, let's resolve the abstractions for the Grid Layout
model; the **alignment container** is the grid item's **grid area**
(the grid tracks such items is placed on), while the **alignment
subject** is the **grid item** (the box participating in first (last)
baseline self-alignment).
So, the first consequence of what the spec states is that after
calculating the baseline of the shared-group and aligning all its
items based on that, it may imply that a content-sized track will see
its size increased. This fact has some implications that I don't fully
understand:
1- How we should resolve the items with relative size (percentages) ?
Should their size be resolved using the new content-sized track's
size ?
2- Content Alignment affects the final size of the grid area when
items spans more than one track. The space distributed depends on the
one available after completing the track sizing algorithm. For items
with a relative size, we only know their actual size after applying
the content alignment rules. However, if baseline alters the size of
the tracks, how this would affect to the item's relative size ?
Please view or discuss this issue at
https://github.com/w3c/csswg-drafts/issues/1039 using your GitHub
account
Received on Wednesday, 15 February 2017 21:36:03 UTC