W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2016

Re: [csswg-drafts] [mediaqueries][css-conditional] else

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 May 2016 22:33:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-221422044-1464129191-sysbot+gh@w3.org>
On 05/13/2016 10:49 PM, Tab Atkins Jr. wrote:
>
> Maybe instead, we just explicitly create an |@if| block, which can 
take |media()| and |supports()| conditions (like what we
> have for |@import| statements). |@media|/|@supports| would then just
 be special-case versions that let you write slightly
> shorter blocks when you only need one or the other type. Then 
|@else| (and |@else-if|) can be blocks that have to follow an
> |@if| or equivalent.

Combinable queries seem pretty useful. The current W3C style sheet is 
doing a conditional against both selectors and @media, 
which is involving a fair bit of code duplication atm...


-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221422044 
using your GitHub account
Received on Tuesday, 24 May 2016 22:33:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:58 UTC