Rick Viscomi Profile picture
web performance devrel at @googlechrome

Aug 22, 2019, 8 tweets

How mad at your CSS do you have to be to add 274 zeroes to your z-index?

I've got 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 problems but my z-index ain't one

Gotcha

unicar.fo/css/lity.css

274 digits. (!important)

It actually gets worse.

parseInt returns Infinity for values > 1e310. I switched to extracting repeated digits using regexs and now I'm finding much larger z-index values...

321 digits. /* Sit on top */

carezzabeauty.com/carezza.css

357 digits. /* Make sure it does not overlap */

teenjobs.co.nz/CSS/style.css

396 digits. (display: none)

emc.org.ge/assets/fronten…

780 digits! (!important)

five5.com.br/plugins-css/mi…

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling