@@ -2338,57 +2338,6 @@ The Focus Container Pseudo-class: '':focus-within''
2338
2338
(including non-element nodes, such as text nodes)
2339
2339
matches the conditions for matching '':focus'' .
2340
2340
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
-
2392
2341
2393
2342
Time-dimensional Pseudo-classes
2394
2343
@@ -3926,6 +3875,8 @@ Changes
3926
3875
Changed the specificity of '':is()'' , '':where()'' , and '':nth-child()''
3927
3876
to not depend on which selector argument matched.
3928
3877
3878
+ Dropped the '':drop()'' pseudo-classes since HTML dropped the related feature.
3879
+
3929
3880
3930
3881
3931
3882
Significant changes since the
2 May 2013 Working Draft include:
0 commit comments