Live data from Hacker News

An informal survey of z-index values found in the wild

psuter.net

1–10 of 30 posts

Re: An informal survey of z-index values found in the wild

#2
With css scripting languages becoming a core part of the build set up I'm amazed how many people still use 100 / 1000 / 10000 / 999 style z-index values.

https://gist.github.com/davidweatherall/dfc469b7a4451b169ae5... Is my go to sass function for creating a simple to use z-index map.

Re: An informal survey of z-index values found in the wild

#6
I would have liked to see the first graph in number order instead of rank. Being in rank order doesn't tell me much. Later is the graph with all numbers in number order, but I think that first graph with just the top 50 would be far more interesting in number order.

Re: An informal survey of z-index values found in the wild

#8

With css scripting languages becoming a core part of the build set up I'm amazed how many people still use 100 / 1000 / 10000 / 999 style z-index values. https://gist.github.com/davidweatherall/dfc469b7a4451b169ae5... Is my go to sass function for creating a simple to use z-index map.

I'm guessing most people don't particularly care about z ordering. All they want is something that says "this should be on top of everything else". Or more rarely "this should be underneath everything else".

Aside from the extremes they are happy with the natural order, I think.

Re: An informal survey of z-index values found in the wild

#9
post #7

I’m impressed by the author’s crawling of 112 million webpages, but I can’t help but wonder if it’s really necessary. Surely the same distribution could be found with a smaller sample?

He used a precompiled set to query so the cost wasn't that high.
Post reply on HN