Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor

CssVariableEvaluator::evaluateVariablespublicWC 1.0

Replaces all CSS custom property references in inline style attributes with their corresponding values where defined in inline style attributes (either from the element itself or the nearest ancestor).

Method of the class: CssVariableEvaluator{}

No Hooks.

Returns

$this.

Usage

$CssVariableEvaluator = new CssVariableEvaluator();
$CssVariableEvaluator->evaluateVariables(): self;

CssVariableEvaluator::evaluateVariables() code WC 10.5.0

public function evaluateVariables(): self
{
    return $this->evaluateVariablesInElementAndDescendants($this->getHtmlElement(), []);
}