public static class MediaQueryEvaluates the @media conditions doc 09 lists as supported.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A condition is and-joined features, each (name) or (name: value), with the min- and max- prefixes that carry nearly all real usage. That is deliberately less than CSS Media Queries 4 — no or, no not, no range syntax (width >= 600px).
A condition this cannot evaluate makes the whole block fail to load, with a diagnostic. The alternative is choosing a default, and both defaults are wrong in a way nobody will notice: treating it as false silently drops styles, and treating it as true silently applies phone styles on a desktop. The same rule the selector compiler follows, for the same reason.
Methods (1)
public static bool TryEvaluate(string? condition, MediaContext context, out bool matches, out string? reason)Evaluates a condition.
Used by (2)
- StyleSheetLoaderVixen.Ui.Styling
- StyleSheetLoadingTestsVixen.Ui.Styling.Tests