92 std::set<std::string> &seenMediaBlocks,
93 const std::vector<AncestorFrame> *ancestors =
nullptr);
Public declarations for libhtmlpp HTML element types and utilities.
Core namespace for the libhtmlpp HTML parsing and printing library.
void collectStyleBlocks(CSSStyleSheet &sheet, Element &root)
Finds every <style> element anywhere in the subtree rooted at root (document order) and appends each ...
CSSRuleResult getCSSRules(HtmlElement &target, const CSSStyleSheet &sheet, std::set< std::string > &seenMediaBlocks, const std::vector< AncestorFrame > *ancestors=nullptr)
Returns every CSS rule that applies to target: its own inline style="..." attribute,...
Result of getCSSRules: the fully cascaded property set (name -> value, "!important" stripped) and the...
std::map< std::string, std::string > properties