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

Re: [csswg-drafts] [css-grid] Resolved values of grid-template-rows/columns don't round-trip (#4475)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 04 Nov 2019 19:32:22 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-549511349-1572895941-sysbot+gh@w3.org>
Sure, padding works if you want a fixed amount, but you can't use `padding-left: 1fr`.

Another usecase could be having a grid with a main table, but also with some side comments per row in an extra column at the end. You may want to size this extra column explicitly, but not include it when using negative integers to place items in the main table. I guess subgrid can be an alternative solution for this, but it may not work that well depending on the HTML structure.

Anyways, I have written a quick draft patch for Chromium that would exclude implicit tracks from the resolved value. It produces failures in 13 WPT tests, see https://crrev.com/c/1897931

I haven't looked at them in detail but I expect some of them to be checking that the sizes of the implicit tracks are correct. This will be difficult to do if the sizes are not included... I guess they will need `.getBoundingClientRect()` on the grid items or something.

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

This archive was generated by hypermail 2.4.0 : Saturday, 2 July 2022 03:21:24 UTC