You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: selectors4/Overview.src.html
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1714,6 +1714,27 @@ <h3 id="focus-pseudo">
1714
1714
<p>There may be document language or implementation specific limits on
1715
1715
which elements can acquire <code>:focus</code>.</p>
1716
1716
1717
+
<h3id='the-valid-drop-target-pseudo'>
1718
+
The drag-and-drop pseudo-class <code>:valid-drop-target</code></h3>
1719
+
1720
+
<p>
1721
+
The <dfnid='valid-drop-target-pseudo'>:valid-drop-target</dfn> pseudo-class
1722
+
applies while an element is being hovered over,
1723
+
and is a valid target for the current drag-and-drop operation,
1724
+
as defined by the host language.
1725
+
1726
+
<pclass='example'>
1727
+
For example, [[HTML5]] defines the <ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dropzone-attribute"><code>dropzone</code></a> attribute,
1728
+
which allows an author to declare an element as a "drop target",
1729
+
and declare what kinds of data the element is willing to accept from drag-and-drop.
1730
+
1731
+
<p>
1732
+
If a UA has alternate models of drag-and-drop,
1733
+
such as one based on focusing elements,
1734
+
the <code>:valid-drop-target</code> pseudo-class must also match when such an element is interacted with
1735
+
such that the user is about to drop into the element,
1736
+
such as when the <code>:focus</code> pseudo-class applies.
0 commit comments