W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: Inclusion of :drag-over in CSS4 UI

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 22 Sep 2011 18:20:16 -0700
Message-ID: <CAAWBYDCYY=pi+kYfJWdw7FAUUoAkzzBmNKaoVGyeRCmkekdCYg@mail.gmail.com>
To: Ryan Seddon <seddon.ryan@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Sep 22, 2011 at 5:18 PM, Ryan Seddon <seddon.ryan@gmail.com> wrote:
> Firefox has had the :-moz-drag-over[1] pseudo-class for sometime which
> allows you to style an element when the drag over event is called on it.
>
> I think this would be a useful inclusion to be considered for the CSS4 UI
> module, albeit perhaps with a more descriptive name.
>
> [1] https://developer.mozilla.org/en/CSS/:-moz-drag-over

Since this actually matches an element with @dropzone (and which is a
valid dropzone for the dragged element), I think it needs a better
name.  As an initial bad suggestion, :valid-dropzone.

Other than the name thing, though, this is definitely useful.  It's
very useful for an author to indicate visually when the user is
hovering over a valid dropzone, and without this you can only achieve
that effect by adding/removing a class in the drag events (which isn't
reliable, iirc, because you could, for example, drag from the element
to outside the window).

~TJ
Received on Friday, 23 September 2011 01:21:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:44 GMT