W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

[csswg-drafts] [css-conditional] Make CSSSupportsRule expose whether its condition is met (#4240)

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Fri, 23 Aug 2019 22:14:59 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-484732088-1566598498-sysbot+gh@w3.org>
SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-conditional] Make CSSSupportsRule expose whether its condition is met ==
You currently can't tell directly from a CSSSupportsRule whether the condition is actually fulfilled or not. To do that you have to use `CSS.supports(cssSupportsRule.conditionText)`.

Therefore I suggest to add a getter to CSSSupportsRule (or rather to CSSConditionRule which is overwritten by the derived interfaces) that returns whether the condition is met or not, e.g `supported` or `fulfilled`.

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4240 using your GitHub account
Received on Friday, 23 August 2019 22:15:01 UTC

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