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).

Received on Friday, 23 September 2011 01:21:30 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:04 UTC