Make WordPress Core


Ignore:
Timestamp:
09/18/2023 06:47:44 AM (22 months ago)
Author:
isabel_brison
Message:

Editor: add text orientation for blocks with typography support.

Adds a new text orientation option to the typography block support, implemented with CSS writing-mode.

Props poena.
Fixes #59306.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r56559 r56605  
    204204     * @since 6.2.0 Added `outline-*`, and `min-height` properties.
    205205     * @since 6.3.0 Added `column-count` property.
     206     * @since 6.4.0 Added `writing-mode` property.
    206207     *
    207208     * @var array
     
    262263        'filter'                            => array( 'filter', 'duotone' ),
    263264        'box-shadow'                        => array( 'shadow' ),
     265        'writing-mode'                      => array( 'typography', 'writingMode' ),
    264266    );
    265267
     
    341343     *              `position.fixed` and `position.sticky`.
    342344     * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
    343      * @since 6.4.0 Added `layout.allowEditing`.
     345     * @since 6.4.0 Added `layout.allowEditing` and `typography.writingMode`.
    344346     *
    345347     * @var array
     
    410412            'textDecoration' => null,
    411413            'textTransform'  => null,
     414            'writingMode'    => null,
    412415        ),
    413416    );
     
    472475            'textDecoration' => null,
    473476            'textTransform'  => null,
     477            'writingMode'    => null,
    474478        ),
    475479        'css'        => null,
Note: See TracChangeset for help on using the changeset viewer.