Skip to content

Commit b65d364

Browse files
authored
[BUGFIX] Create Size with correct types in expandBackgroundShorthand (#828)
This is the v8.x backport of #814.
1 parent 6f30dcb commit b65d364

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1515

1616
### Fixed
1717

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

2021
## 8.7.0: Add support for PHP 8.4

src/RuleSet/DeclarationBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ public function expandBackgroundShorthand()
432432
'background-repeat' => ['repeat'],
433433
'background-attachment' => ['scroll'],
434434
'background-position' => [
435-
new Size(0, '%', null, false, $this->iLineNo),
436-
new Size(0, '%', null, false, $this->iLineNo),
435+
new Size(0, '%', false, $this->iLineNo),
436+
new Size(0, '%', false, $this->iLineNo),
437437
],
438438
];
439439
$mRuleValue = $oRule->getValue();

0 commit comments

Comments
 (0)