WordPress at a glance
function is not described

Pelago\Emogrifier\HtmlProcessor

CssToAttributeConverter::mapComplexCssProperty() private WC 1.0

Maps CSS properties that need special transformation to an HTML attribute.

{} It's a method of the class: CssToAttributeConverter{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->mapComplexCssProperty( $property, $value, \DOMElement $node );
$property(string) (required)
the name of the CSS property to map
$value(string) (required)
the value of the style rule to map
\DOMElement $node (required)
-

Code of CssToAttributeConverter::mapComplexCssProperty() WC 5.4.1

<?php
private function mapComplexCssProperty($property, $value, \DOMElement $node)
{
    switch ($property) {
        case 'background':
            $this->mapBackgroundProperty($node, $value);
            break;
        case 'width':
            // intentional fall-through
        case 'height':
            $this->mapWidthOrHeightProperty($node, $value, $property);
            break;
        case 'margin':
            $this->mapMarginProperty($node, $value);
            break;
        case 'border':
            $this->mapBorderProperty($node, $value);
            break;
        default:
    }
}