Skip to content

Commit 01cd9d1

Browse files
committed
document getSelectorsBySpecificity
1 parent fe3509e commit 01cd9d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
114114
* `getAllDeclarationBlocks()` – does what it says; no matter how deeply nested your selectors are. Aliased as `getAllSelectors()`.
115115
* `getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are.
116116
* `getAllValues()` – finds all `Value` objects inside `Rule`s.
117+
* `getSelectorsBySpecificity(int: $specificity)` - finds all selectors with the requested specificity. `$specificity` is an integer with `1` being the highest specificity value. The method behaves just like `getAllDeclarationBlocks()` if no parameter is passed.
117118

118119
## To-Do
119120

0 commit comments

Comments
 (0)