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, orNoneif it doesn’t parse, which makes an@supportsrule invalid.selector()holds for a selector Parsec can match, which takes the defaultcascadefeature; 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.