Make WordPress Core


Ignore:
Timestamp:
09/19/2022 08:12:02 PM (2 years ago)
Author:
audrasjb
Message:

Editor: Backport block supports (border, color, elements, spacing) from Gutenberg to WP 6.1.

This changeset backports border, color, elements and spacing block supports changes from Gutenberg to WP 6.1.

See tracking issue on Gutenberg repository: gutenberg#43440.

Props ramonopoly, glendaviesnz, bernhard-reiter, audrasjb, costdev.
See #56467.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/supportedStyles.php

    r51657 r54211  
    221221        );
    222222
    223         $expected_styles  = 'test: style; color: #000; background-color: #fff;';
     223        $expected_styles  = 'test: style;color:#000;background-color:#fff;';
    224224        $expected_classes = 'foo-bar-class wp-block-example has-text-color has-background';
    225225
     
    284284
    285285        $expected_classes = 'foo-bar-class wp-block-example has-background';
    286         $expected_styles  = 'test: style; background: some-gradient-style;';
     286        $expected_styles  = 'test: style; background:some-gradient-style;';
    287287
    288288        $this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
     
    564564
    565565        $expected_classes = 'foo-bar-class wp-block-example has-text-color has-background alignwide';
    566         $expected_styles  = 'test: style; color: #000; background-color: #fff; font-size: 10px; line-height: 20;';
     566        $expected_styles  = 'test: style; color:#000; background-color:#fff; font-size: 10px; line-height: 20;';
    567567
    568568        $this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
Note: See TracChangeset for help on using the changeset viewer.