Automattic\WooCommerce\Vendor\Sabberworm\CSS\RuleSet

DeclarationBlock::createBorderShorthandpublicWC 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.

Combines border-color, border-style and border-width into border.

Should be run after create_dimensions_shorthand!

Method of the class: DeclarationBlock{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

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

DeclarationBlock::createBorderShorthand() code WC 10.5.0

public function createBorderShorthand()
{
    $aProperties = [
        'border-width',
        'border-style',
        'border-color',
    ];
    $this->createShorthandProperties($aProperties, 'border');
}