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


Top ↑

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;"),


Top ↑

Source Source

File: vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.