W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

Re: [csswg-drafts] [css-grid] Do all percentages behave as auto when computing minimum contribution? (#3612)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 04 Nov 2019 10:10:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-549288902-1572862238-sysbot+gh@w3.org>
> I don't like this new incompatible definition of "behaves as auto".

I also had the impression that "behaves as auto" was contextual, but I was told that the definition of "behaves as auto" is that the behavior of the value is completely indistinguishable from `auto`, and for grid items percentages are only treated like auto at some points, so they don't behave as auto. IIRC, @FremyCompany was strongly convinced about this, and @fantasai agreed.

Can you clarify why you think this definition is incompatible? I had the impression that percentages being treated as `auto` at some points and different than `auto` at other points is a relatively new thing of grid and flex layout.

> A percentage always depends on its percentage basis to be resolved.

Yes, that's why we used "depends on the size of its containing block", we wanted to include percentages. Just checking "behaves as auto" wasn't including percentages.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3612#issuecomment-549288902 using your GitHub account
Received on Monday, 4 November 2019 10:10:40 UTC

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