Re: @else in Media Queries

14.06.2016, 13:32, "Sebastian Zartner" <sebastianzartner@gmail.com>:
> You came up with an @when rule additionally to the @else rule.
> Should these rules directly take a condition? If so, they would
> need to cover media queries and support queries (and maybe other
> conditional types in the future). Or should they support @media 
> and @supports rules inside their condition, somehow?

Corresponding functions are supposed to be used:

    @when media(...) and supports(...) {...}

See:

[1] https://tabatkins.github.io/specs/css-when-else/
[2] https://github.com/w3c/csswg-drafts/issues/112

Received on Tuesday, 14 June 2016 19:45:35 UTC