Make WordPress Core


Ignore:
Timestamp:
06/22/2023 08:16:05 AM (23 months ago)
Author:
isabel_brison
Message:

Editor: add text columns to typography support.

Adds a text columns feature to the typography block support that uses CSS column-count for multi-column text.

Props ramonopoly, aaronrobertshaw.
Fixes #58549.

File:
1 edited

Legend:

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

    r55175 r55985  
    2626     *
    2727     * @ticket 56467
     28     * @ticket 58549
    2829     *
    2930     * @covers ::wp_style_engine_get_styles
     
    190191                        'fontWeight'     => '800',
    191192                        'lineHeight'     => '1.3',
     193                        'textColumns'    => '2',
    192194                        'textDecoration' => 'underline',
    193195                        'textTransform'  => 'uppercase',
     
    197199                'options'         => null,
    198200                'expected_output' => array(
    199                     'css'          => 'font-size:clamp(2em, 2vw, 4em);font-family:Roboto,Oxygen-Sans,Ubuntu,sans-serif;font-style:italic;font-weight:800;line-height:1.3;text-decoration:underline;text-transform:uppercase;letter-spacing:2;',
     201                    'css'          => 'font-size:clamp(2em, 2vw, 4em);font-family:Roboto,Oxygen-Sans,Ubuntu,sans-serif;font-style:italic;font-weight:800;line-height:1.3;column-count:2;text-decoration:underline;text-transform:uppercase;letter-spacing:2;',
    200202                    'declarations' => array(
    201203                        'font-size'       => 'clamp(2em, 2vw, 4em)',
     
    204206                        'font-weight'     => '800',
    205207                        'line-height'     => '1.3',
     208                        'column-count'    => '2',
    206209                        'text-decoration' => 'underline',
    207210                        'text-transform'  => 'uppercase',
Note: See TracChangeset for help on using the changeset viewer.