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: Thu, 18 Jan 2018 19:53:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-358762331-1516305193-sysbot+gh@w3.org>
I'm not sure what the reference to S-B trees is about. Can you elaborate?

I presume the underlying desire is the ability to order some child C between two other children A and B, without having to make sure that A and B's `order` values are separated by more than 1?  (That is, is A has `order: 1;` and B has `order: 2`, there's currently no way to put C between the two of them reliably without just changing A and/or B's `order` values.)

If that's the case, I agree with the desire, and would like `order` (and `z-index`, for that matter) to accept a *list* of values, and resolve them in lexicographic order.  That way, given A and B as set up above, you could give C an `order: 1 1` or `order: 2 -1` to either place it after A or before B (which are implicitly specifying `0` for later indexes).

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

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