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

[csswg-drafts] [all] Feature detection for CSS property support on certain elements (#4498)

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 Nov 2019 00:45:59 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-519594460-1573173958-sysbot+gh@w3.org>
upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [all] Feature detection for CSS property support on certain elements ==
There are properties which are supported on SVG elements, but not HTML element, and vice versa. Some of them become supported in both sets of elements, but there is no direct way to detect such support, and thus authors cannot have website respond to availability of that, which is unfortunate.

I think this is something we need to solve, but I don't have good idea about how this can be solved in a general way.

One possible solution might be to introduce a guideline that when a property is not applied to certain kinds of elements, it must be computed to some default value. That would make it easier to detect via using gCS. Specific behavior can probably be discussed case by case, but it could help if this is taken into consideration during designing.

Also if we do introduce this guideline, we should audit existing properties and change and test accordingly.

WDYT?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4498 using your GitHub account
Received on Friday, 8 November 2019 00:46:06 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:05 UTC