W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

Re: [csswg-drafts] [css-grid] Percentages of indefinite sizes in grid gaps

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Aug 2016 07:23:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-240333816-1471418599-sysbot+gh@w3.org>
Just to clarify the expected behavior, imagine a grid with indefinite 
width and height (e.g. an absolutely positioned grid container) where 
we set the following properties:
  grid: 100px 100px / 200px 200px;
  grid-gap: 10%;

* The gap between columns would be **40px**. As it uses the intrinsic 
size of the grid container (400px) to resolve the percentage. That's 
the same behavior that we use to resolve a 10% column in this case.
* However, the gap between rows would be **0px**.

BTW, percentage gaps are already implemented on Firefox since a while 
ago, and we've some patches WIP in Blink and WebKit, so it should be 
ready there too.

GitHub Notification of comment by mrego
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 17 August 2016 07:23:28 UTC

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