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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 25 May 2016 18:56:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-221672439-1464202606-sysbot+gh@w3.org>
@fantasai So if we pretend there's a `selector()` function that is 
true if something on the page matches that selector, I think you'd 
write:

```
@when selector(body.toc-inline) or (media(width < 28em) and not 
selector(body.toc-sidebar)) {
  /* inline ToC styling */
} @else {
  /* sidebar ToC styling */
}
```

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221672439 
using your GitHub account
Received on Wednesday, 25 May 2016 18:56:52 UTC

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