Make WordPress Core

Opened 7 months ago

Closed 6 months ago

Last modified 5 months ago

#59982 closed enhancement (fixed)

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

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


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.

7 months ago

### What

Syncs changes from 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:


<summary>Example block code</summary>


  • List
  • List
  • List



<summary>Frontend output</summary>


  • List
  • List
  • List


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

Trac ticket:

#2 @isabel_brison
6 months ago

  • Owner set to isabel_brison
  • Resolution set to fixed
  • Status changed from new to 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:

6 months ago

Committed in r57253.

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

6 months ago

#5 @joemcgill
6 months ago

  • Milestone changed from Awaiting Review to 6.5

#6 @stevenlinx
5 months ago

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