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

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