Package dev.jcputney.mjml.css
package dev.jcputney.mjml.css
-
ClassDescriptionA single CSS property declaration, e.g.Inlines CSS styles into HTML elements' style attributes.Parses CSS text into a list of
CssRuleobjects.Result of parsing CSS: regular rules to inline and preserved at-rules.A CSS rule consisting of a selector string and a list of declarations.Sealed hierarchy of CSS selectors.Attribute selector with operator.A class selector (e.g. ".red").CSS combinator types used between selectors in a complex selector.A complex selector joining two selectors with a combinator (e.g.A compound selector consisting of a chain of simple selectors with no combinator (e.g.An ID selector (e.g.A pseudo-class selector (e.g.A pseudo-element selector (e.g.A comma-separated list of selectors (e.g.A single simple selector part (type, class, ID, attribute, pseudo-class, or pseudo-element).A type (element name) selector (e.g.The universal selector (*), which matches any element.Matches CSS selectors againstHtmlElementnodes.Recursive-descent parser for CSS selectors.CSS specificity as an (a, b, c) tuple where: a = number of ID selectors b = number of class, attribute, and pseudo-class selectors c = number of type and pseudo-element selectors Inline styles have a virtual specificity of (1, 0, 0, 0) which always wins, handled separately by the inliner.Lightweight HTML tokenizer that builds anHtmlElementtree from HTML text.Result of extracting CSS from HTML, containing the cleaned HTML and collected CSS text.Lightweight HTML element representation for CSS selector matching and style inlining.Parses, merges, and serializes CSS inline style attributes.