Re: Inclusion of :drag-over in CSS4 UI

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 UTC