Skip to content

Commit 4b96685

Browse files
committed
Edit docs.
1 parent 270f118 commit 4b96685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ in the Level 3 specification:
108108
* ``:not()`` accepts a *sequence of simple selectors*, not just single
109109
*simple selector*. For example, ``:not(a.important[rel])`` is allowed,
110110
even though the negation contains 3 *simple selectors*.
111+
* ``:scope`` allows to access immediate children of a selector: ``product.css(':scope > div::text')``, simillar to XPath ``child::div``. Must be used at the start of a selector. Simplified version of `level 4 reference`_.
111112

112113
.. _an early draft: http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors
114+
.. _level 4 reference: https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
113115

114116
..
115117
The following claim was copied from lxml:

0 commit comments

Comments
 (0)