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

There's no such thing as "definitely the front"; as soon as you think you want that, you're going to immediately afterwards want to put something in front of *that*.

The multiple-values-in-z-index thing, tho, lets people organize their page into layers *without* having to do silly things like using 1000, 2000, 3000, etc.

You can also use custom properties to organize things into named layers, so that you can say `z-index: var(--z-top-layer);` without having to worry about precisely what value that resolves to.  (And with the extended z-index, you can write `z-index: var(--z-top-layer) 1;` to go on top of the top layer, etc.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2444#issuecomment-373530781 using your GitHub account

Received on Thursday, 15 March 2018 21:36:42 UTC