W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

[csswg-drafts] [css-align][css-grid] Baseline self-alignment may affect the intrinsic size contribution of the alignment subject.

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
Message-ID: <issues.opened-207935317-1487194555-sysbot+gh@w3.org>
javifernandez has just created a new issue for 

== [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: 

> 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

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 
Received on Wednesday, 15 February 2017 21:36:03 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:08 UTC