Changeset 59199
- Timestamp:
- 10/09/2024 01:26:13 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/style-engine/class-wp-style-engine.php
r58834 r59199 26 26 * @since 6.5.0 Added support for background.backgroundPosition, 27 27 * background.backgroundRepeat and dimensions.aspectRatio. 28 * @since 6.7.0 Added support for typography.writingMode. 28 29 */ 29 30 #[AllowDynamicProperties] … … 305 306 ), 306 307 'path' => array( 'typography', 'letterSpacing' ), 308 ), 309 'writingMode' => array( 310 'property_keys' => array( 311 'default' => 'writing-mode', 312 ), 313 'path' => array( 'typography', 'writingMode' ), 307 314 ), 308 315 ), -
trunk/tests/phpunit/tests/style-engine/styleEngine.php
r58834 r59199 30 30 * @ticket 60175 31 31 * @ticket 61720 32 * @ticket 62189 32 33 * 33 34 * @covers ::wp_style_engine_get_styles … … 229 230 'textTransform' => 'uppercase', 230 231 'letterSpacing' => '2', 231 ), 232 ), 233 'options' => null, 234 'expected_output' => array( 235 'css' => 'font-size:clamp(2em, 2vw, 4em);font-family:Roboto,Oxygen-Sans,Ubuntu,sans-serif;font-style:italic;font-weight:800;line-height:1.3;column-count:2;text-decoration:underline;text-transform:uppercase;letter-spacing:2;', 232 'writingMode' => 'vertical-rl', 233 ), 234 ), 235 'options' => null, 236 'expected_output' => array( 237 'css' => 'font-size:clamp(2em, 2vw, 4em);font-family:Roboto,Oxygen-Sans,Ubuntu,sans-serif;font-style:italic;font-weight:800;line-height:1.3;column-count:2;text-decoration:underline;text-transform:uppercase;letter-spacing:2;writing-mode:vertical-rl;', 236 238 'declarations' => array( 237 239 'font-size' => 'clamp(2em, 2vw, 4em)', … … 244 246 'text-transform' => 'uppercase', 245 247 'letter-spacing' => '2', 248 'writing-mode' => 'vertical-rl', 246 249 ), 247 250 ),
Note: See TracChangeset
for help on using the changeset viewer.