Automattic\WooCommerce\Vendor\Sabberworm\CSS\Value

Size::isSizepublicWC 1.0

Returns whether the number stored in this Size really represents a size (as in a length of something on screen).

Method of the class: Size{}

No Hooks.

Returns

false. if the unit an angle, a duration, a frequency or the number is a component in a Color object.

Usage

$Size = new Size();
$Size->isSize();

Size::isSize() code WC 10.7.0

public function isSize()
{
    if (in_array($this->sUnit, self::NON_SIZE_UNITS, true)) {
        return false;
    }
    return !$this->isColorComponent();
}