wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/block-supports/states.php › WordPress File

Functions11
Block state support for frontend CSS generation.


Function Short description
wp_add_state_style_groupAdds a style fragment to a selector-keyed state style group.
wp_build_state_selectorBuilds a scoped selector from a block selector and optional pseudo-state.
wp_get_block_state_style_rulesBuilds compiled state style rules, preserving the selector each rule targets.
wp_get_block_state_unique_classReturns a unique class for a set of state style rules.
wp_get_root_state_styleReturns a style object with nested state keys removed.
wp_get_state_declarations_with_fallback_border_stylesAdds fallback border-style declarations for visible border declarations.
wp_get_state_style_groupsSplits a state style object into groups based on block feature selectors.
wp_normalize_state_preset_varsConverts internal preset references to CSS custom property references.
wp_normalize_state_style_for_css_outputNormalizes a state style object before generating CSS declarations.
wp_render_block_states_supportRenders per-instance state styles on the frontend.
wp_split_selector_listSplits a selector list by top-level commas.