private function mapSimpleCssProperty($property, $value, \DOMElement $node)
    {
        if (!isset($this->cssToHtmlMap[$property])) {
            return false;
        }

        $mapping = $this->cssToHtmlMap[$property];
        $nodesMatch = !isset($mapping['nodes']) || \in_array($node->nodeName, $mapping['nodes'], true);
        $valuesMatch = !isset($mapping['values']) || \in_array($value, $mapping['values'], true);
        if (!$nodesMatch || !$valuesMatch) {
            return false;
        }

        $node->setAttribute($mapping['attribute'], $value);

        return true;
    }
private function mapSimpleCssProperty($property, $value, \DOMElement $node)
    {
        if (!isset($this->cssToHtmlMap[$property])) {
            return false;
        }

        $mapping = $this->cssToHtmlMap[$property];
        $nodesMatch = !isset($mapping['nodes']) || \in_array($node->nodeName, $mapping['nodes'], true);
        $valuesMatch = !isset($mapping['values']) || \in_array($value, $mapping['values'], true);
        if (!$nodesMatch || !$valuesMatch) {
            return false;
        }

        $node->setAttribute($mapping['attribute'], $value);

        return true;
    }
private function mapSimpleCssProperty ( $ property , $ value , \ DOMElement $ node ) { if ( ! isset ( $ this -> cssToHtmlMap [ $ property ] ) ) { return false ; } $ mapping = $ this -> cssToHtmlMap [ $ property ] ; $ nodesMatch = ! isset ( $ mapping [ 'nodes' ] ) || \ in_array ( $ node -> nodeName , $ mapping [ 'nodes' ] , true ) ; $ valuesMatch = ! isset ( $ mapping [ 'values' ] ) || \ in_array ( $ value , $ mapping [ 'values' ] , true ) ; if ( ! $ nodesMatch || ! $ valuesMatch ) { return false ; } $ node -> setAttribute ( $ mapping [ 'attribute' ] , $ value ) ; return true ; }
Looks up the CSS property in the mapping table and maps it if it matches the conditions.

@param string $property the name of the CSS property to map
@param string $value the value of the style rule to map
@param \DOMElement $node node to apply styles to

@return bool true if the property can be mapped using the simple mapping table
Looks up the CSS property in the mapping table and maps it if it matches the conditions .