Make WordPress Core


Ignore:
Timestamp:
06/26/2023 11:42:16 PM (19 months ago)
Author:
isabel_brison
Message:

Editor: add box shadow support to blocks.

Adds the ability for blocks to declare support for CSS box-shadow and processing of necessary styles.

Props madhudollu, sabernhardt, ramonopoly, spacedmonkey, mukesh27.
Fixes #58590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/style-engine/styleEngine.php

    r55985 r56046  
    2727     * @ticket 56467
    2828     * @ticket 58549
     29     * @ticket 58590
    2930     *
    3031     * @covers ::wp_style_engine_get_styles
     
    183184            ),
    184185
     186            'inline_valid_shadow_style'                    => array(
     187                'block_styles'    => array(
     188                    'shadow' => 'inset 5em 1em gold',
     189                ),
     190                'options'         => null,
     191                'expected_output' => array(
     192                    'css'          => 'box-shadow:inset 5em 1em gold;',
     193                    'declarations' => array(
     194                        'box-shadow' => 'inset 5em 1em gold',
     195                    ),
     196                ),
     197            ),
     198
    185199            'inline_valid_typography_style'                => array(
    186200                'block_styles'    => array(
Note: See TracChangeset for help on using the changeset viewer.