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

[csswg-drafts] [css-position] 'front' & 'back' keywords for z-index

From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Mar 2018 20:10:54 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-305702468-1521144653-sysbot+gh@w3.org>
jonjohnjohnson has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-position] 'front' & 'back' keywords for z-index ==
https://drafts.csswg.org/css-position-3/#propdef-z-index

How many times have you written things like `z-index: 999999` or `z-index:-999999`?

If you work on the design side of the field you may be familiar with phrases like  "bring to front" or "send to back" and though it doesn't take too long to understand layering in browsers (I think most of it's nuances were beat like a dead horse in articles 5 to 6 years ago, just google 'css stacking context'), I think people either know and set their sequence of z-index values meticulously OR they just want to send something to the front or back.

So why not support a simple (not as easily broke as `999` or `9999`) set of the keywords `front` & `back` that explicitly accomplish the task they are named for, while still honoring their place in the cascade?

https://github.com/w3c/csswg-drafts/issues/2202#issuecomment-368264480

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2444 using your GitHub account
Received on Thursday, 15 March 2018 20:11:02 UTC

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