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

The way I wrote that example includes one. It's not required.  You can
 also write it as:

```
@if media(width >= 400px) and media(pointer: fine)) {}
@media (width >= 400px) and (pointer: fine) {}
```

> For `@else`, an exact explicit function like `media()` or 
`supports()` could probably be mandatory. The `@when`-or-`@if` issue 
would probably still be ruled out anyway.

Then you have to recognize a *third* grammar, which is still awkward 
as heck.

Rather than "`@media` allows naked MQs and the `supports()` function, 
`@supports` allows naked support queries and the `media()` function, 
`@else` requires both `media()` and `supports()`", we can instead say 
``@media` allows MQs, `@supports` allows support queries, `@when` and 
`@else` require `media()` and `supports()` (because neither is clearly
 a particular type of conditional).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/112#issuecomment-222245121 
using your GitHub account

Received on Friday, 27 May 2016 20:25:49 UTC