Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59982 closed enhancement (fixed)

Style engine: add CSS var parsing capability to fontSize and fontFamily

Reported by: ramonopoly Owned by: isabel_brison
Priority: normal Milestone: 6.5
Component: Editor Version: 6.5
Severity: normal Keywords: has-patch has-unit-tests gutenberg-merge add-to-field-guide
Cc: Focuses:

Description

Syncs changes from ​WordPress/gutenberg#56528 by adding CSS var parsing capability to fontSize and fontFamily.

Change History (6)

This ticket was mentioned in ​PR #5710 on ​WordPress/wordpress-develop by ​@ramonopoly.


3 years ago
#1

### What

Syncs changes from ​https://github.com/WordPress/gutenberg/pull/56528 by adding CSS var parsing capability to fontSize and fontFamily.

### Testing
Ensure that there are no regressions in block supports styles. Here is some test code:

<details>

<summary>Example block code</summary>

Paragraph

  • List
  • List
  • List

</details>

<details>

<summary>Frontend output</summary>

Paragraph

  • List
  • List
  • List

</details>

Run the tests!
npm run test:php -- --filter Tests_wpStyleEngine

Trac ticket: https://core.trac.wordpress.org/ticket/59982

#2 @isabel_brison
3 years ago

  • Owner set to isabel_brison
  • Resolution → fixed
  • Status new → closed

In 57253:

Editor: add CSS var parsing for fontSize and fontFamily.

Adds capability to parse CSS custom properties for fontSize and fontFamily in WP_Style_Engine.

Props ramonopoly.
Fixes #59982.

​@isabel_brison commented on ​PR #5710:


3 years ago
#3

Committed in r57253.

This ticket was mentioned in ​Slack in #core by kebbet. ​View the logs.


3 years ago

#5 @joemcgill
3 years ago

  • Milestone Awaiting Review → 6.5

#6 @stevenlinx
3 years ago

  • Keywords add-to-field-guide added
Note: See TracTickets for help on using tickets.