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::getCssRuleMatches( string $css )
Parses a string of CSS into the media query, selectors and declarations for each ruleset in order.
Description Description
Parameters Parameters
- $css
-
(Required) CSS with comments removed
Return Return
(string[][]) Array of string sub-arrays with the keys "media" (the media query string, e.g. "@media screen and (max-width: 480px)", or an empty string if not from an @media
rule), "selectors" (the CSS selector(s), e.g., "*" or "h1, h2"), "declarations" (the semicolon-separated CSS declarations for that/those selector(s), e.g., "color: red; height: 4px;"),
Source Source
File: vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php