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

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