Re:The top layer: a solution to z-index:10000
by stavros on Thursday August 25, 2022 @08:15PM
(#32601753)
But if "A over C and B over C", is A over B?
[ Parent
| on HN ]
Re:The top layer: a solution to z-index:10000
by gberger on Thursday August 25, 2022 @08:56PM
(#32602037)
This is a topological sort without a unique solution.
https://en.wikipedia.org/wiki/Topological_sorting#Uniqueness
Re:The top layer: a solution to z-index:10000
by shhsshs on Thursday August 25, 2022 @08:29PM
(#32601850)
I imagine it would just pick an order unless you also wrote a rule for A relative to B
Re:The top layer: a solution to z-index:10000
by stavros on Thursday August 25, 2022 @08:35PM
(#32601893)
Yes, that's the most reasonable thing to do, but an absolute index has much less room for that. Though you then need to allow decimals, so things can be positioned between things that are already adjacent.
The other issue it doesn't have is if you specify "A over B and B over A".