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

Re: Inclusion of :drag-over in CSS4 UI

From: Ojan Vafai <ojan@chromium.org>
Date: Thu, 22 Sep 2011 18:33:15 -0700
Message-ID: <CANMdWTsewN4cLFjk4r_PkW3hAGKq2Wj_23ddzQxExWfqucCyzw@mail.gmail.com>
To: David Chambers <david.chambers.05@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Ryan Seddon <seddon.ryan@gmail.com>, www-style list <www-style@w3.org>
On Thu, Sep 22, 2011 at 6:30 PM, David Chambers <david.chambers.05@gmail.com
> wrote:

> 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.
>>
>
How about just :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).
>>
>
I agree. This is very useful. Would love to add this to WebKit.


>> ~TJ
>>
>>
>
Received on Friday, 23 September 2011 01:34:01 GMT

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