includes/Assets/class-css-safelist.php
Shared CSS safelist guard for the Used_CSS and Critical_CSS pipelines.
Class Css_Safelist
Shared CSS safelist guard.
class Css_Safelistpublicstatic get_elementor_presets()
public static function get_elementor_presets(): arrayShared Elementor/popup preset selectors preserved by both pipelines.
Return: string[].
publicstatic passes_elementor_smoke()
public static function passes_elementor_smoke(string $html, string $purged_css): boolWhether purged CSS keeps required Elementor tokens. Parameter Type Default Description $htmlstring— Source HTML. $purged_cssstring— Purged CSS under test.
Return: bool — True when the CSS passes the smoke check.