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

[csswg-drafts] [css-support]Add in @support ' else '

From: tarasikgoga via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Mar 2017 14:15:45 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-213351604-1489155344-sysbot+gh@w3.org>
gogas has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-support]Add in @support ' else ' ==
[@suppurt](https://drafts.csswg.org/css-conditional/#at-supports)

The specification says that we can test to support the property of the browser like
`@supports (animation-name: test) { }`
or test for the non-support of a specific CSS property
`@supports not ( hanging-punctuation: first ){`
But why not reduce this code to `if (){} else {}` аs in other programming languages like:
`@supports (filter: grayscale(100%)) {`
   ` img {`
        `filter: grayscale(100%)`
    `}`
`} else {`
    `img {`
        `background-image: url("/image.png");`
    `}`
`}`

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1096 using your GitHub account
Received on Friday, 10 March 2017 14:15:51 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:30 UTC