W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

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

From: inoas via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Apr 2017 19:17:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-291245168-1491247026-sysbot+gh@w3.org>
As I consider CSS to be more on the declarative than imperative side, **if** is timeless then IMHO. 
<pattern> => application
@if(condition) { apply block }
selector_or_pattern { apply block }

Things turning on and off happens through user-interaction/behaviors/javascript/keyframes and those external processes simply set a different state (say window size or dom tree change) which "in theory" the css declarations that pattern match the conditions applies instantly without any delay (in theory!).

Anyway I'd 👍 by a big margin even using *@when*

GitHub Notification of comment by inoas
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/112#issuecomment-291245168 using your GitHub account
Received on Monday, 3 April 2017 19:17:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:10 UTC