W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

[csswg-drafts] [css-contain] specified column/row sizes on grid containers should contribute to contain:size

From: Morgan Rae Reschenberg via GitHub <sysbot+gh@w3.org>
Date: Thu, 21 Jun 2018 23:05:39 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-334689439-1529622337-sysbot+gh@w3.org>
MReschenberg has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain] specified column/row sizes on grid containers should contribute to contain:size ==
I didn't see this explicitly messaged in the spec, and I wanted to check in because grid containers are a little similar to tables, and table elements are a special case in the spec. 

I think grid elements which have content-relative sizing on their columns/rows (e.g grid-template-columns: auto) should be treated as if the sizing were zero when contain:size is applied. However, if the value is specified (e.g. grid-template-row: 20px) with contain:size applied, it should be treated as being explicitly sized at whatever the specified size is (or the sum of the specified sizes). 

This would mean, for example, that an element with 'grid-template-columns: 20px auto;' would have a contained width of 20px. I noticed this wasn't the behaviour in Chrome's contain implementation (https://jsfiddle.net/9qcL6frj/3/ < test case) , but I also didn't see this mentioned in the spec and thought I'd check. 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2804 using your GitHub account
Received on Thursday, 21 June 2018 23:05:42 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 21 June 2018 23:05:43 UTC