Automattic\WooCommerce\Vendor\Sabberworm\CSS\RuleSet

DeclarationBlock::expandShorthandspublicWC 1.0

Устарела с версии since 8.7.0, will be removed without substitution in version 9.0 in #511. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Splits shorthand declarations (e.g. margin or font) into their constituent parts.

Метод класса: DeclarationBlock{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$DeclarationBlock = new DeclarationBlock();
$DeclarationBlock->expandShorthands();

Список изменений

Устарела С версии 8.7.0 , will be removed without substitution in version 9.0 in #511

Код DeclarationBlock::expandShorthands() WC 10.4.3

public function expandShorthands()
{
    // border must be expanded before dimensions
    $this->expandBorderShorthand();
    $this->expandDimensionsShorthand();
    $this->expandFontShorthand();
    $this->expandBackgroundShorthand();
    $this->expandListStyleShorthand();
}