When handling mouse click events, would it be possible for BuildDisplayList to determine what the user clicked on based partly on the opacity of the elements in the stack?

Some websites have begun disabling user clicks on certain objects (i.e. images) by overlaying them with a transparent element that captures the event.

I understand what websites are trying to do, but this seems like a bad user experience for which the browser is partly responsible, since the browser is in charge of making sure that a user's clicks have the effect the user intends.

We expose a preference for preventing web sites from disabling context menus (ignoring calls to preventDefault in those cases). The overlay technique is another way of disabling those menus. Shouldn't we allow users to prevent it, too?

For example, we might pass click events to the top-most object that is at least n% opaque, where n is some number we determine through testing, so elements have to be visible enough that users know what they're clicking on.

-myk
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to