An informal survey of z-index values found in the wild
1–10 of 30 posts
Re: An informal survey of z-index values found in the wild
#2With 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
#3The story about 8675309 is pretty interesting, but I prefer 6345789.
Re: An informal survey of z-index values found in the wild
#4Amazing job you did there. That's oddly interesting to measure a data we use without common convention, it really draws out the human tendency of picking up a number.
Re: An informal survey of z-index values found in the wild
#5Would be interesting to know the selector grouping count as well, I would assume most would be for things like '.overlay' or '.dropdown' etc
Re: An informal survey of z-index values found in the wild
#6I 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
#7I’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?
Re: An informal survey of z-index values found in the wild
#8With 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
#9I’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.
Re: An informal survey of z-index values found in the wild
#10This was fascinating, thanks. Made me think about why I used 99 as my max -- I think it's because back in the SNES days, all the RPGs used 99 as a limit.