plugin updates
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
* @since 6.4.0 Added support for background.backgroundImage.
|
||||
* @since 6.5.0 Added support for background.backgroundPosition,
|
||||
* background.backgroundRepeat and dimensions.aspectRatio.
|
||||
* @since 6.7.0 Added support for typography.writingMode.
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
final class WP_Style_Engine {
|
||||
@@ -50,31 +51,37 @@ final class WP_Style_Engine {
|
||||
*/
|
||||
const BLOCK_STYLE_DEFINITIONS_METADATA = array(
|
||||
'background' => array(
|
||||
'backgroundImage' => array(
|
||||
'backgroundImage' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-image',
|
||||
),
|
||||
'value_func' => array( self::class, 'get_url_or_value_css_declaration' ),
|
||||
'path' => array( 'background', 'backgroundImage' ),
|
||||
),
|
||||
'backgroundPosition' => array(
|
||||
'backgroundPosition' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-position',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundPosition' ),
|
||||
),
|
||||
'backgroundRepeat' => array(
|
||||
'backgroundRepeat' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-repeat',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundRepeat' ),
|
||||
),
|
||||
'backgroundSize' => array(
|
||||
'backgroundSize' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-size',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundSize' ),
|
||||
),
|
||||
'backgroundAttachment' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-attachment',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundAttachment' ),
|
||||
),
|
||||
),
|
||||
'color' => array(
|
||||
'text' => array(
|
||||
@@ -299,6 +306,12 @@ final class WP_Style_Engine {
|
||||
),
|
||||
'path' => array( 'typography', 'letterSpacing' ),
|
||||
),
|
||||
'writingMode' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'writing-mode',
|
||||
),
|
||||
'path' => array( 'typography', 'writingMode' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user