Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove space between attribute and value
New style engine does not emit spaces between attributes and values.

See #3199.
  • Loading branch information
ironprogrammer committed Sep 14, 2022
commit 7fa16023ab6b23cafcc75c6e2c207392c5094615
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-supports/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function test_should_generate_font_family_with_legacy_inline_styles_using_a_valu
$block_atts = array( 'style' => array( 'typography' => array( 'fontFamily' => 'serif' ) ) );

$actual = wp_apply_typography_support( $block_type, $block_atts );
$expected = array( 'style' => 'font-family: serif;' );
$expected = array( 'style' => 'font-family:serif;' );

$this->assertSame( $expected, $actual );
}
Expand Down Expand Up @@ -209,7 +209,7 @@ function test_should_generate_css_var_for_font_family_with_legacy_inline_styles(
$block_atts = array( 'style' => array( 'typography' => array( 'fontFamily' => 'var:preset|font-family|h1' ) ) );

$actual = wp_apply_typography_support( $block_type, $block_atts );
$expected = array( 'style' => 'font-family: var(--wp--preset--font-family--h-1);' );
$expected = array( 'style' => 'font-family:var(--wp--preset--font-family--h-1);' );

$this->assertSame( $expected, $actual );
}
Expand Down