Pelago\Emogrifier
CssInliner::removeImportantAnnotationFromAllInlineStyles() private WC 1.0
Searches for all nodes with a style attribute and removes the "!important" annotations out of the inline style declarations, eventually by rearranging declarations.
{} It's a method of the class: CssInliner{}
No Hooks.
Return
null.
Usage
// private - for code of main (parent) class only $result = $this->removeImportantAnnotationFromAllInlineStyles();
Code of CssInliner::removeImportantAnnotationFromAllInlineStyles() CssInliner::removeImportantAnnotationFromAllInlineStyles WC 5.0.0
private function removeImportantAnnotationFromAllInlineStyles()
{
foreach ($this->getAllNodesWithStyleAttribute() as $node) {
$this->removeImportantAnnotationFromNodeInlineStyle($node);
}
}