|
libhtmlpp 1.0.0
|
Go to the source code of this file.
Classes | |
| struct | libhtmlpp::CSSRuleResult |
| Result of getCSSRules: the fully cascaded property set (name -> value, "!important" stripped) and the accumulated raw text of every matching @media (or other at-rule) block. More... | |
Namespaces | |
| namespace | libhtmlpp |
| Core namespace for the libhtmlpp HTML parsing and printing library. | |
Functions | |
| void | libhtmlpp::collectStyleBlocks (CSSStyleSheet &sheet, Element &root) |
Finds every <style> element anywhere in the subtree rooted at root (document order) and appends each one's parsed rules to sheet. | |
| CSSRuleResult | libhtmlpp::getCSSRules (HtmlElement &target, const CSSStyleSheet &sheet, std::set< std::string > &seenMediaBlocks) |
Returns every CSS rule that applies to target: its own inline style="..." attribute, folded together with every rule in sheet whose selector CSSStyleSheet::approximateSelectorMatch's-es target's tag/class/id (see that method's doc comment for exactly what selector syntax is and isn't supported), under the same approximate-cascade rules as CSSStyleSheet::collectApproximateMatches (inline > !important > later-rule-wins). | |