Changeset 57253
- Timestamp:
- 01/09/2024 02:43:48 AM (16 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/style-engine/class-wp-style-engine.php
r56640 r57253 216 216 ), 217 217 'path' => array( 'typography', 'fontSize' ), 218 'css_vars' => array( 219 'font-size' => '--wp--preset--font-size--$slug', 220 ), 218 221 'classnames' => array( 219 222 'has-$slug-font-size' => 'font-size', … … 223 226 'property_keys' => array( 224 227 'default' => 'font-family', 228 ), 229 'css_vars' => array( 230 'font-family' => '--wp--preset--font-family--$slug', 225 231 ), 226 232 'path' => array( 'typography', 'fontFamily' ), -
trunk/tests/phpunit/tests/style-engine/styleEngine.php
r56614 r57253 253 253 'elements_with_css_var_value' => array( 254 254 'block_styles' => array( 255 'color' => array(255 'color' => array( 256 256 'text' => 'var:preset|color|my-little-pony', 257 ), 258 'typography' => array( 259 'fontSize' => 'var:preset|font-size|cabbage-patch', 260 'fontFamily' => 'var:preset|font-family|transformers', 257 261 ), 258 262 ), … … 261 265 ), 262 266 'expected_output' => array( 263 'css' => '.wp-selector{color:var(--wp--preset--color--my-little-pony);}', 264 'declarations' => array( 265 'color' => 'var(--wp--preset--color--my-little-pony)', 266 ), 267 'classnames' => 'has-text-color has-my-little-pony-color', 267 'css' => '.wp-selector{color:var(--wp--preset--color--my-little-pony);font-size:var(--wp--preset--font-size--cabbage-patch);font-family:var(--wp--preset--font-family--transformers);}', 268 'declarations' => array( 269 'color' => 'var(--wp--preset--color--my-little-pony)', 270 'font-size' => 'var(--wp--preset--font-size--cabbage-patch)', 271 'font-family' => 'var(--wp--preset--font-family--transformers)', 272 273 ), 274 'classnames' => 'has-text-color has-my-little-pony-color has-cabbage-patch-font-size has-transformers-font-family', 268 275 ), 269 276 ),
Note: See TracChangeset
for help on using the changeset viewer.