W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: [css-variables][mediaqueries] Allow var() in media queries?

From: Andrea Rendine <master.skywalker.88@gmail.com>
Date: Thu, 9 Apr 2015 13:09:26 +0200
Message-ID: <CAGxST9kGHpLQ+9ECRdc8W6c_ttnrStY0qcBm0dJ3nNt_GSL=Fw@mail.gmail.com>
To: Glen Huang <curvedmark@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Well then, I have to admit I like it very much!
The concept of having initial values to resolve media queries to avoid
circular dependency is not new (see CSS Device Adaptation et al.), but
I find it disturbing the value used to resolve MQs in that case is
different depending on whether the content of MQ affects viewport, or
style application.

> We can also constrain the power of @intial by only allowing custom properties in it, if it creates less problems.
What if @initial could also contain @viewport?
Or, in general, it could contain whatever can affect media queries, so
that properties specified in it are the only values which can affect
MQs.
It would be the opposite of the concept of "scope" I proposed some
days ago and which is not logically applicable to CSS.
Received on Thursday, 9 April 2015 11:09:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC