Changeset 58856 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 08/06/2024 08:24:14 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r58834 r58856 2739 2739 * Updated general global styles specificity to 0-1-0. 2740 2740 * Fixed custom CSS output in block style variations. 2741 * @since 6.6.1 Avoid applying `:root :where()` wrapper to top-level element-only selectors. 2742 * @since 6.6.2 Avoid applying `:root :where()` wrapper to root selectors. 2741 2743 * 2742 2744 * @param array $block_metadata Metadata about the block to get styles for. … … 2893 2895 2894 2896 /* 2897 * Root selector (body) styles should not be wrapped in `:root where()` to keep 2898 * specificity at (0,0,1) and maintain backwards compatibility. 2899 * 2895 2900 * Top-level element styles using element-only specificity selectors should 2896 2901 * not get wrapped in `:root :where()` to maintain backwards compatibility. … … 2900 2905 * variations etc. Pseudo selectors won't match the ELEMENTS selector exactly. 2901 2906 */ 2902 $element_only_selector = $current_element && 2907 $element_only_selector = $is_root_selector || ( 2908 $current_element && 2903 2909 isset( static::ELEMENTS[ $current_element ] ) && 2904 2910 // buttons, captions etc. still need `:root :where()` as they are class based selectors. 2905 2911 ! isset( static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $current_element ] ) && 2906 static::ELEMENTS[ $current_element ] === $selector; 2912 static::ELEMENTS[ $current_element ] === $selector 2913 ); 2907 2914 2908 2915 // 2. Generate and append the rules that use the general selector.
Note: See TracChangeset
for help on using the changeset viewer.