Hacker News new | past | comments | ask | show | jobs | submit login

I actually use this trick for good, not evil. It's a way of styling certain unstyleable elements in old browsers. But you have a point -- it's useless in modern browsers. That said, what is the standard? Is 5% enough?



Maybe we need fractional clicks. If you click on a 0% opaque button then you don't get a click. If it's 1% opaque, then you get 1% of a click event. :-)

Actaully... I started writing that as a joke but now that I think about it, if the browser embedded the opacity value of the clicked element in the GET or POST header, the webserver receiving the click could set the standard themselves.

Alternately, since facebook has lots of resources, facebook could make a request to the referring site themselves, render the page and determine if there are any shenanigans going on with z-ordering or opacity automatically. You could look at all of the css applied to all of the element affecting those pixels.

No... this is all crazy. Just pick a value like 30% and disallow clicks on anything less.


What about visibility: hidden?

What about background: transparent?

What about background: url(transparent.png)?

What about background: data:encoded-transparent-image...

Even browser-side "visibility" calculations can become an AI-level problem quickly.


There is an easy solution to the AI calculation though.

Anything not proven visible counts as invisible. Done!


Anything not "proven invisible"? So... any text on any image background? Any colored text on any background? (white text on white background...)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: