public final class CSSFilterParser
- Object
- CSSFilterParser
Runtime parser for CSS
filter: / backdrop-filter: chains. Mirrors
the build-time css-compiler’s parser. Returns a Style.FilterChain
holding a blur radius (in pixels) and a 4x5 color matrix that
composes the chain’s color-style functions
(brightness / contrast / grayscale / hue-rotate / invert / opacity /
saturate / sepia). The matrix is null when the chain reduces to the
identity transform (no color-style functions present, or all of them
at their no-op argument).Nested types
class CSSFilterParser.FilterChain | Parsed filter chain payload. |
Methods
public static CSSFilterParser.FilterChain parse(String css) | Parses a CSS filter chain. |
Inherited methods
Method details
parse
public static CSSFilterParser.FilterChain parse(String css)Parses a CSS filter chain. Returns null when
css is null, empty,
or literally none. Throws IllegalArgumentException when a
function name or argument is unrecognised.