Skip to content

Commit 4446ec6

Browse files
committed
[selectors-4] Drop the :drop() pseudo-class, since HTML dropped its declarative support for drop zones. #2257
1 parent a5d3306 commit 4446ec6

File tree

1 file changed

+2
-51
lines changed

1 file changed

+2
-51
lines changed

selectors-4/Overview.bs

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,57 +2338,6 @@ The Focus Container Pseudo-class: '':focus-within''
23382338
(including non-element nodes, such as text nodes)
23392339
matches the conditions for matching '':focus''.
23402340

2341-

2342-
The Drop Target Pseudo-class: '':drop'' and '':drop()''
2343-
2344-
The :drop pseudo-class applies to all elements
2345-
that are drop targets,
2346-
as defined by the document language,
2347-
while the user is “dragging”
2348-
or otherwise conceptually carrying an item
2349-
to be “dropped”.
2350-
2351-
The :drop() functional pseudo-class is identical to '':drop'',
2352-
but allows additional filters to be specified that can exclude some drop targets.
2353-
Its syntax is:
2354-
2355-
:drop( [ active || valid || invalid ]? ) 
2356-
2357-
The keywords have the following meanings:
2358-
2359-
2360-
active
2361-
2362-
The drop target is the current drop target for the drag operation.
2363-
That is, if the user were to release the drag,
2364-
it would be dropped onto this drop target.
2365-
2366-
valid
2367-
2368-
If the document language has a concept of “valid” and “invalid” drop targets,
2369-
this only matches if the drop target is valid for the object currently being dragged.
2370-
Otherwise, it matches all drop targets.
2371-
2372-
For example, HTML's dropzone attribute can specify that the drop target only accepts strings or files that are set to a given type.
2373-
2374-
invalid
2375-
2376-
If the document language has a concept of “valid” and “invalid” drop targets,
2377-
this only matches if the drop target is invalid for the object currently being dragged.
2378-
Otherwise, it matches nothing.
2379-
2380-
2381-
Multiple keywords can be combined in the argument,
2382-
representing only drop targets that satisfy all of the keywords.
2383-
For example, '':drop(valid active)'' will match the active drop target if it's valid,
2384-
but not if it's invalid.
2385-
2386-
If no keywords are given in the argument,
2387-
'':drop()'' has the same meaning as '':drop''--
2388-
it matches every drop target.
2389-
2390-
Issue: Turn this scenario into an example.
2391-
23922341

23932342
Time-dimensional Pseudo-classes
23942343

@@ -3926,6 +3875,8 @@ Changes
39263875
  • Changed the specificity of '':is()'', '':where()'', and '':nth-child()''
  • 39273876
    to not depend on which selector argument matched.
    39283877
    3878+
  • Dropped the '':drop()'' pseudo-classes since HTML dropped the related feature.
  • 3879+
    39293880
    39303881

    39313882
    Significant changes since the 2 May 2013 Working Draft include:

    0 commit comments

    Comments
     (0)