wordpress-develop/tests/phpunit/tests/blocks
Tonya Mork b2849b7718 Editor: Introduces fluid typography and uses Style Engine.
This commit introduces fluid typography block supports and switches to use the Style Engine for typography and colors.

The motivation for fluid typography block supports:
>"Fluid typography" describes how a site's font sizes adapt to every change in screen size, for example, growing larger as the viewport width increases, or smaller as it decreases.
>
>Font sizes can smoothly scale between minimum and maximum viewport widths.

Typography changes introduced from Gutenberg:

* Uses the Style Engine to generate the CSS and classnames in `wp_apply_typography_support()`.
* Introduces `wp_typography_get_preset_inline_style_value()` for backwards-compatibility.
* Introduces a private internal function called `wp_get_typography_value_and_unit()`, for checking and getting typography unit and value.
* Introduces a private internal function called  `wp_get_computed_fluid_typography_value()`, for an internal implementation of CSS `clamp()`.
* Deprecates `wp_typography_get_css_variable_inline_style()`.

References:
* [https://github.com/WordPress/gutenberg/pull/40332 WordPress/gutenberg PR 40332] Style Engine: add typography and color to backend
* [https://github.com/WordPress/gutenberg/pull/39529 WordPress/gutenberg PR 39529] Block supports: add fluid typography

Follow-up to [53076], [52302], [52069], [51089], [50761], [49226].

Props ramonopoly, youknowriad, aristath, oandregal, aaronrobertshaw, cbirdsong, jorgefilipecosta, ironprogrammer, hellofromTonya.
See #56467.

git-svn-id: https://develop.svn.wordpress.org/trunk@54260 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-20 15:41:44 +00:00
..
context.php Tests: Correctly use the factory method. 2022-09-06 22:03:10 +00:00
editor.php Editor: Backport foundation for Layout block support refactor (part 1). 2022-09-14 18:42:04 +00:00
getBlockTemplates.php Tests: Move the basic get_block_templates() test to the dedicated file. 2022-09-18 13:08:33 +00:00
register.php Blocks: Allow registering multiple items for all supported asset types 2022-09-14 10:50:26 +00:00
render.php Blocks: Add new render property in block.json for block types 2022-09-12 13:12:21 +00:00
renderCommentTemplate.php Build/Test Tools: Fix comments odd/even instabilities (test leaks). 2022-05-23 11:54:28 +00:00
renderReusable.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
serialize.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
supportedStyles.php Editor: Introduces fluid typography and uses Style Engine. 2022-09-20 15:41:44 +00:00
wpBlock.php Editor: Backport build_query_vars_from_query_block changes from Gutenberg repository. 2022-09-15 11:39:43 +00:00
wpBlockList.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpBlockParser.php Tests: Rename classes in phpunit/tests/blocks/ per the naming conventions. 2021-07-26 18:45:48 +00:00
wpBlockType.php Editor: Register 'lock' attribute for every block on the server 2022-04-26 09:48:20 +00:00
wpBlockTypeRegistry.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00