Automattic\WooCommerce\Vendor\Sabberworm\CSS\RuleSet

DeclarationBlock::createShorthandspublicWC 1.0

Deprecated since since 8.7.0, will be removed without substitution in version 9.0 in #511. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Creates shorthand declarations (e.g. margin or font) whenever possible.

Method of the class: DeclarationBlock{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Deprecated Since 8.7.0 , will be removed without substitution in version 9.0 in #511

DeclarationBlock::createShorthands() code WC 10.5.0

public function createShorthands()
{
    $this->createBackgroundShorthand();
    $this->createDimensionsShorthand();
    // border must be shortened after dimensions
    $this->createBorderShorthand();
    $this->createFontShorthand();
    $this->createListStyleShorthand();
}