W3C home > Mailing lists > Public > www-style@w3.org > June 2016

Re: @else in Media Queries

From: Marat Tanalin <mtanalin@yandex.ru>
Date: Tue, 14 Jun 2016 22:45:03 +0300
To: Sebastian Zartner <sebastianzartner@gmail.com>, Tab Atkins Jr. <jackalmage@gmail.com>
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, W3C www-style mailing list <www-style@w3.org>
Message-Id: <13915161465933503@web17j.yandex.ru>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:47 UTC