Skip to content

Commit

Permalink
[BUGFIX] Create Size with correct types in `expandBackgroundShortha…
Browse files Browse the repository at this point in the history
…nd` (#828)

This is the v8.x backport of #814.
  • Loading branch information
oliverklee authored Jan 27, 2025
1 parent 6f30dcb commit b65d364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Fixed

- Create `Size` with correct types in `expandBackgroundShorthand` (#814)
- Parse `@font-face` `src` property as comma-delimited list (#794)

## 8.7.0: Add support for PHP 8.4
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ public function expandBackgroundShorthand()
'background-repeat' => ['repeat'],
'background-attachment' => ['scroll'],
'background-position' => [
new Size(0, '%', null, false, $this->iLineNo),
new Size(0, '%', null, false, $this->iLineNo),
new Size(0, '%', false, $this->iLineNo),
new Size(0, '%', false, $this->iLineNo),
],
];
$mRuleValue = $oRule->getValue();
Expand Down

0 comments on commit b65d364

Please sign in to comment.