W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

Re: [csswg-drafts] [css-grid] fr unit and other length units

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Jan 2017 13:49:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-273479514-1484747352-sysbot+gh@w3.org>
The CSS Grid Layout spec actually doesn't define the `fr` unit as a 
_length unit_ of any kind. Instead, it introduces the new dimension 
type — "Flexible Length", which can currently be used in one context 
only — for a [size of a grid 
track](https://drafts.csswg.org/css-grid/#typedef-track-breadth), 
which is defined as
> `<track-breadth>       = <length-percentage> | <flex> | min-content 
| max-content | auto`

(where `<flex>` is this new dimension type).

Since [the `width` 
property](https://drafts.csswg.org/css-box-3/#propdef-width) is 
defined as
> `[<length> | <percentage>] | available | min-content | max-content |
 fit-content | auto`

which doesn't allow `<flex>` type of value, `width: 1fr` would be an 
invalid declaration, just like `width: 1deg`, `width: 500Hz` and so 
on. I don't see any ambiguity in the current definition

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/955#issuecomment-273479514 
using your GitHub account
Received on Wednesday, 18 January 2017 13:49:19 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:37 UTC