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

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