Changeset 58874 for branches/6.6/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 08/09/2024 03:38:13 PM (8 weeks ago)
- Location:
- branches/6.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.6
- Property svn:mergeinfo changed
/trunk merged: 58856,58864
- Property svn:mergeinfo changed
-
branches/6.6/src/wp-includes/class-wp-theme-json.php
r58751 r58874 2881 2881 2882 2882 /* 2883 * Root selector (body) styles should not be wrapped in `:root where()` to keep 2884 * specificity at (0,0,1) and maintain backwards compatibility. 2885 * 2883 2886 * Top-level element styles using element-only specificity selectors should 2884 2887 * not get wrapped in `:root :where()` to maintain backwards compatibility. … … 2888 2891 * variations etc. Pseudo selectors won't match the ELEMENTS selector exactly. 2889 2892 */ 2890 $element_only_selector = $current_element && 2893 $element_only_selector = $is_root_selector || ( 2894 $current_element && 2891 2895 isset( static::ELEMENTS[ $current_element ] ) && 2892 2896 // buttons, captions etc. still need `:root :where()` as they are class based selectors. 2893 2897 ! isset( static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $current_element ] ) && 2894 static::ELEMENTS[ $current_element ] === $selector; 2898 static::ELEMENTS[ $current_element ] === $selector 2899 ); 2895 2900 2896 2901 // 2. Generate and append the rules that use the general selector.
Note: See TracChangeset
for help on using the changeset viewer.