Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does WebKit have an equivalent for the CSS pseudo-class -moz-drag-over?

Tags:

css

webkit

The :-moz-drag-over pseudoclass (in Firefox) is used for styling an element that is a drop target (for drag and drop events) and that is currently being hovered by a dragged item. Does WebKit have an equivalent?

like image 688
Blixt Avatar asked Jan 02 '12 16:01

Blixt


People also ask

What is the WebKit in CSS?

The term 'webkit' is used in the CSS syntax for rendering content in Safari and Chrome browsers. Webkit code may need to be added in CSS to ensure it renders correctly on Chrome and Safari due to the lack of cross-compatibility.

What is a CSS pseudo class?

CSS pseudo-classes are used to add styles to selectors, but only when those selectors meet certain conditions. A pseudo class is expressed by adding a colon (:) after a selector in CSS, followed by a pseudo-class such as "hover", "focus", or "active", like this: a:hover { /* your style here */ }

What is the CSS extension for WebKit?

CSS Extension prefix for Webkit is -webkit which is supported by almost all ios browsers. -o is used by opera where as -moz is used by firefox browser.

Which dynamic pseudo class is used to style unvisited links?

The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a> or <area> element that has an href attribute.


1 Answers

I haven't found the equivelant (YET) but you can use javascript dragging properties to get some control of a drag-over action.

This shows how to do it using JavaScript. However, this article presents a cross-browser solution (also, JS) that faces the issue and acts as a common denominator.

like image 188
Carrie Kendall Avatar answered Oct 12 '22 00:10

Carrie Kendall