Skip to content

Commit

Permalink
[TASK] Drop expansion of shorthand properties (#838)
Browse files Browse the repository at this point in the history
Those were deprecated in version 8.7.0.

Fixes #511
  • Loading branch information
oliverklee authored Jan 27, 2025
1 parent 5ee1d9a commit 1d76088
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1,052 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Please also have a look at our

### Removed

- Remove expansion of shorthand properties (#838)
- Remove `Parser::setCharset/getCharset` (#808)
- Remove `Rule::getValues()` (#582)
- Remove `Rule::setValues()` (#562)
Expand Down
24 changes: 0 additions & 24 deletions src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,30 +111,6 @@ public function getSelectorsBySpecificity($sSpecificitySearch = null): array
return $aResult;
}

/**
* Expands all shorthand properties to their long value.
*
* @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
*/
public function expandShorthands(): void
{
foreach ($this->getAllDeclarationBlocks() as $oDeclaration) {
$oDeclaration->expandShorthands();
}
}

/**
* Create shorthands properties whenever possible.
*
* @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
*/
public function createShorthands(): void
{
foreach ($this->getAllDeclarationBlocks() as $oDeclaration) {
$oDeclaration->createShorthands();
}
}

/**
* Overrides `render()` to make format argument optional.
*
Expand Down
Loading

0 comments on commit 1d76088

Please sign in to comment.