Skip to main content

Module supports

Module supports 

Source
Expand description

@supports and CSS.supports(), CSS Conditional Rules Level 5: a condition parsed and evaluated against what this crate parses. A declaration is supported when its value parses for its property, a selector() when Parsec’s selector engine parses it, and font-format() and font-tech() when they name a format or technology the specs define.

Functions§

supports
Whether a <supports-condition> holds, or None if it doesn’t parse, which makes an @supports rule invalid. selector() holds for a selector Parsec can match, which takes the default cascade feature; without it, selector() is always false.
supports_declaration
CSS.supports(property, value).
supports_text
CSS.supports(conditionText): a condition, or a declaration without its parentheses.