Re:The top layer: a solution to z-index:10000
by ramesh31 on Friday August 26, 2022 @12:40AM
(#32603423)
You joke, but z-index really is one of the worst decisions in the CSS spec.
So. Many. Footguns.
There really is almost no case in which a combination of DOM hierarchy and positioning isn't sufficient.
Re:The top layer: a solution to z-index:10000
by hoten on Thursday August 25, 2022 @11:45PM
(#32603132)
At the risk of reading too much into a joke, what about the top layer / stack suggests this would later beg for a "topper layer"?
Re:The top layer: a solution to z-index:10000
by threatripper on Friday August 26, 2022 @01:44AM
(#32603747)
z-index YYYYMMDD
Re:The top layer: a solution to z-index:10000
by matsemann on Friday August 26, 2022 @03:27AM
(#32604244)
Actually not that bad. If everyone assumed today's date to be the max value, one could always add something new on top without having to guess whatever value someone else has used, and risk exhausting the range because someone uses the max value.
Re:The top layer: a solution to z-index:10000
by tomxor on Friday August 26, 2022 @05:06AM
(#32604900)
It's not half bad, the problem is that you'd have to throw an error when attempting to use higher values (or in CSS's case just not render it or something), because currently z-index will happily accept >max values and just consider them max.
Re:The top layer: a solution to z-index:10000
by trevvr on Friday August 26, 2022 @04:42AM
(#32604742)
But what's today for me is yesterday in New Zealand and if I'm on the West Coast of the US or Hawaii then that can go on for a 'long time'? If I then go +1 then that's just going to end up in the same rat race / breakages.
Re:The top layer: a solution to z-index:10000
by zamadatix on Friday August 26, 2022 @12:43PM
(#32609735)
If CSS would up it to be a 64 bit integer then timestamp could fix all that. That's a common approach to DNS serials, there they are 32 bit but there is logic about handling rollovers that wouldn't apply to layers. Or if you want to keep it human readable UTC.
I was thinking: does this solve a problem, or does it introduce another problem?
Re:The top layer: a solution to z-index:10000
by goto11 on Friday August 26, 2022 @12:39PM
(#32609684)
Popups already exist on the web. Typically they are implemented by injecting an element as the last child of the body element, and then use absolute positioning on it. Last inserted element wins. This proposal just allows the same effect with simpler code and no need for DOM injection.
But we've heard your feedback, and today, in 2023, we bring you the "topper-layer", accessed using z-index:12000.
You might be wondering if we're going to stop here. The answer of course, is no. We have a roll-out plan for the next 8 years which will culminate in z-index:100000.
Some of you might be asking if our plans for the super-topper-most-mostest-layer are really just reducing this all back to "normal" z-index stacking in the document flow. We'll leave that as a discussion for the forums, while we get back to work."