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

Re: [csswg-drafts] [css-grid] aspect ratio units needed

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Feb 2018 03:35:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-362476386-1517542545-sysbot+gh@w3.org>
Alternatively, call it out explicitly
```
track-size = /* curent syntax*/ | aspect-ratio( <number>  <grid-line> [ / <grid-line> ]?)
```
```css
container {
  display: grid;
  grid-template-columns: 100px 50px 300px;
  grid-auto-rows: aspect-ratio(1.0 1 / 3); /* 1 * (100px + 50px) = 150px */ 
}
```

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1173#issuecomment-362476386 using your GitHub account
Received on Friday, 2 February 2018 03:35:48 UTC

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