Make WordPress Core


Ignore:
Timestamp:
09/07/2023 04:28:45 AM (19 months ago)
Author:
isabel_brison
Message:

Editor: add configurable viewport sizes for fluid typography.

Adds options to configure min and max viewport sizes for fluid typography in theme.json settings.

Props ramonopoly.
Fixes #59048.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/typography.php

    r56503 r56535  
    623623     * @ticket 58522
    624624     * @ticket 58523
     625     * @ticket 59048
    625626     *
    626627     * @covers ::wp_register_typography_support
     
    693694                'font_size_value' => '17px',
    694695                'theme_slug'      => 'block-theme-child-with-fluid-typography-config',
    695                 'expected_output' => 'font-size:clamp(16px, 1rem + ((1vw - 3.2px) * 0.147), 17px);',
     696                'expected_output' => 'font-size:clamp(16px, 1rem + ((1vw - 6.4px) * 0.179), 17px);',
    696697            ),
    697698            'returns value when font size <= custom min font size bound' => array(
Note: See TracChangeset for help on using the changeset viewer.