Interface CssInline
- All Known Implementing Classes:
CssInlineImpl
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated. -
Method Summary
-
Method Details
-
inlineCss
Deprecated.Moves the CSS rules from the<style>blocks in the document head to the elements. It always returns a complete html document (with<html>root tag), even if given only a html snippet. -
getElementStyles
@Deprecated Map<String,String> getElementStyles(String html, String selector, Predicate<CssInline.Rule> ruleFilter) Deprecated.Moves the CSS rules from the<style>blocks in the document head to the elements and returns all styles of the first element that matches the selector. Only the rules for which the givenruleFilterpredicate returnstrueare inlined.- Parameters:
html- HTML string with styles in document headselector- The element to select (styles for first matching element are returned)ruleFilter- Only rules for which this predicate returnstrueare inlined- Returns:
- all styles of the first element that matches the selector.
-