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

Re: [csswg-drafts] [css-flexbox] Allow fractions for order

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Jan 2018 19:17:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-359062639-1516389450-sysbot+gh@w3.org>
Yeah, the whole point of this is to avoid people needing to pre-separate their `order` values. People do that today with `z-index` and it's ridiculous and shouldn't be necessary.

> I also wonder if `order: 1 -1` is before `order: 1`

Yes, it's a lexicographic order, with missing indexes filled with zeros.  You compare each index and sort on the first one that's different.  So, `order: 1;` is the same as `order: 1 0`, and `order: 1 -1` comes before that.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2202#issuecomment-359062639 using your GitHub account
Received on Friday, 19 January 2018 19:17:33 UTC

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