Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can click through whitespace of panel that has "background-color: transparent" -> losing focus

35 views
Skip to first unread message

Jaywalker

unread,
Jul 30, 2009, 8:23:30 AM7/30/09
to
Hey,

I do have a panel over Firefox's main window. The panel has a
transparent background. unfortunately you can now click through the
panel on the UI elements below it (when clicking on white-space), or
if the panel is above a text field, the cursor will change.

This is obviously by design and probably makes sense in many
situations, but doesn't make sense in others. Is there a W3C-
definition that "transparent" means like "air" and not like "glass"
concerning the focus?

Is there a way to make a transparent panel, that won't lose focus when
clicking on white-space?

Thanks a lot!
Cheers.

p.s. same goes for rgba(x,x,x,0).

fantasai

unread,
Jul 31, 2009, 5:06:22 PM7/31/09
to

There's been a proposal to expand the SVG pointer-events property
to apply to HTML. WebKit has implemented this already. I've created
a wiki page for it here, hopefully the details will wind up in a
spec reasonably soon.
http://wiki.csswg.org/ideas/pointer-events

In XUL there might be other ways to do this.. but I'm not familiar
with XUL at all.

~fantasai

Neil

unread,
Aug 1, 2009, 11:18:52 AM8/1/09
to
fantasai wrote:

> In XUL there might be other ways to do this.. but I'm not familiar
> with XUL at all.

You're probably thinking of the "mousethrough" attribute which roc had
to reimplement as part of his display lists so he'd know exactly how it
works.

--
Warning: May contain traces of nuts.

Robert O'Callahan

unread,
Aug 2, 2009, 7:35:33 PM8/2/09
to
On 1/8/09 9:06 AM, fantasai wrote:
> There's been a proposal to expand the SVG pointer-events property
> to apply to HTML. WebKit has implemented this already. I've created
> a wiki page for it here, hopefully the details will wind up in a
> spec reasonably soon.
> http://wiki.csswg.org/ideas/pointer-events

Jonathan Watt is implementing this as we speak.

Rob

0 new messages