Changeset 62718 for trunk/tests/phpunit/tests/style-engine/styleEngine.php
- Timestamp:
- 07/14/2026 02:16:06 AM (32 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/style-engine/styleEngine.php
r62513 r62718 24 24 * @ticket 62189 25 25 * @ticket 63799 26 * @ticket 64974 26 27 * 27 28 * @covers ::wp_style_engine_get_styles … … 576 577 ), 577 578 579 'inline_background_gradient_only' => array( 580 'block_styles' => array( 581 'background' => array( 582 'gradient' => 'linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%)', 583 ), 584 ), 585 'options' => array(), 586 'expected_output' => array( 587 'css' => 'background-image:linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%);', 588 'declarations' => array( 589 'background-image' => 'linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%)', 590 ), 591 'classnames' => 'has-background', 592 ), 593 ), 594 595 'inline_background_gradient_with_preset_slug' => array( 596 'block_styles' => array( 597 'background' => array( 598 'gradient' => 'var:preset|gradient|vivid-cyan-blue', 599 ), 600 ), 601 'options' => array(), 602 'expected_output' => array( 603 'css' => 'background-image:var(--wp--preset--gradient--vivid-cyan-blue);', 604 'declarations' => array( 605 'background-image' => 'var(--wp--preset--gradient--vivid-cyan-blue)', 606 ), 607 'classnames' => 'has-background', 608 ), 609 ), 610 611 'inline_background_gradient_and_image_combined' => array( 612 'block_styles' => array( 613 'background' => array( 614 'backgroundImage' => array( 615 'url' => 'https://example.com/image.jpg', 616 ), 617 'gradient' => 'linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%)', 618 ), 619 ), 620 'options' => array(), 621 'expected_output' => array( 622 'css' => "background-image:linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%), url('https://example.com/image.jpg');", 623 'declarations' => array( 624 'background-image' => "linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%), url('https://example.com/image.jpg')", 625 ), 626 'classnames' => 'has-background', 627 ), 628 ), 629 578 630 'inline_background_image_url_with_background_size' => array( 579 631 'block_styles' => array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)