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_group | Adds a style fragment to a selector-keyed state style group. |
| wp_build_state_selector | Builds a scoped selector from a block selector and optional pseudo-state. |
| wp_get_block_state_style_rules | Builds compiled state style rules, preserving the selector each rule targets. |
| wp_get_block_state_unique_class | Returns a unique class for a set of state style rules. |
| wp_get_root_state_style | Returns a style object with nested state keys removed. |
| wp_get_state_declarations_with_fallback_border_styles | Adds fallback border-style declarations for visible border declarations. |
| wp_get_state_style_groups | Splits a state style object into groups based on block feature selectors. |
| wp_normalize_state_preset_vars | Converts internal preset references to CSS custom property references. |
| wp_normalize_state_style_for_css_output | Normalizes a state style object before generating CSS declarations. |
| wp_render_block_states_support | Renders per-instance state styles on the frontend. |
| wp_split_selector_list | Splits a selector list by top-level commas. |