Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
CssInliner::removeUnmatchablePseudoComponents( string $selector )
Removes pseudo-elements and dynamic pseudo-classes from a CSS selector, replacing them with “*” if necessary.
Description Description
If such a pseudo-component is within the argument of :not
, the entire :not
component is removed or replaced.
Parameters Parameters
- $selector
-
(Required)
Return Return
(string) Selector which will match the relevant DOM elements if the pseudo-classes are assumed to apply, or in the case of pseudo-elements will match their originating element.
Source Source
File: vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php