Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
Sabberworm\CSS\Property\Selector Class Reference

Public Attributes

string const ELEMENTS_AND_PSEUDO_ELEMENTS_RX
 regexp for specificity calculations
 
string const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX
 regexp for specificity calculations
 

Member Data Documentation

◆ ELEMENTS_AND_PSEUDO_ELEMENTS_RX

string const Sabberworm\CSS\Property\Selector::ELEMENTS_AND_PSEUDO_ELEMENTS_RX
Initial value:
= '/
((^|[\s\+>\~]+)[\w]+ # elements
|
:{1,2}( # pseudo-elements
after|before|first-letter|first-line|selection
))
/ix'

regexp for specificity calculations

◆ NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX

string const Sabberworm\CSS\Property\Selector::NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX
Initial value:
= '/
(\.[\w]+) # classes
|
[(\w+) # attributes
|
(\:( # pseudo classes
link|visited|active
|hover|focus
|lang
|target
|enabled|disabled|checked|indeterminate
|root
|nth-child|nth-last-child|nth-of-type|nth-last-of-type
|first-child|last-child|first-of-type|last-of-type
|only-child|only-of-type
|empty|contains
))
/ix'

regexp for specificity calculations


The documentation for this class was generated from the following file: