Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::removeImportantAnnotationFromAllInlineStyles
Searches for all nodes with a style attribute and removes the "!important" annotations out of the inline style declarations, eventually by rearranging declarations.
Method of the class: CssInliner{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->removeImportantAnnotationFromAllInlineStyles(): void;
CssInliner::removeImportantAnnotationFromAllInlineStyles() CssInliner::removeImportantAnnotationFromAllInlineStyles code WC 10.5.0
private function removeImportantAnnotationFromAllInlineStyles(): void
{
/** @var \DOMElement $node */
foreach ($this->getAllNodesWithStyleAttribute() as $node) {
$this->removeImportantAnnotationFromNodeInlineStyle($node);
}
}