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

Re: Inclusion of :drag-over in CSS4 UI

From: David Chambers <david.chambers.05@gmail.com>
Date: Thu, 22 Sep 2011 18:30:43 -0700
Message-ID: <CAAEv1noV5NzYgXghcDm_0JvyhNH7Mjzc6K=H6gzvy5AFDrXEpQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Ryan Seddon <seddon.ryan@gmail.com>, www-style list <www-style@w3.org>
This would indeed be an excellent feature!

David


On 22 September 2011 18:20, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> 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:31:11 UTC

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