Re: @else in Media Queries

Marat Tanalin <[email protected]>
Newsgroups gmane.comp.web.css.general
Message-ID <[email protected]>
10.06.2016, 17:30, "Daniel Glazman" <[email protected]>:
> For the time being, any deletion in a stylesheet always results
> in a valid stylesheet.

An arbitrary deletion (e.g. removing an opening brace while keeping the corresponding closing one) could make a stylesheet invalid.

> But if we have the following:
>
>   @media .... {
>      ...
>   }
>   @else {
>      ...
>   }
>
> and if you remove the @media part, you end up with an invalid statement
> (the standalone @else).

That's perfectly OK on its own.

> All existing code, everywhere on the Web,
> performing deletions in a stylesheet will need to be updated to care
> for that.

Supporting any new syntax-wise feature naturally involves changes in software. I'm not sure about the point of software intended just to perform arbitrary unaware deletions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.