[csswg-drafts] [cssom] Don't use "applies to" to define getComputedStyle behavior (#3678)

AmeliaBR has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] Don't use "applies to" to define getComputedStyle behavior ==
The definition of [resolved values in CSSOM](https://drafts.csswg.org/cssom/#resolved-values) — which are used in `getComputedStyle` results — currently includes sets of properties where the resolved value switches between the used value and the computed value depending on whether "the property applies to the element or pseudo-element".

As discussed in https://github.com/w3c/csswg-drafts/issues/3414#issuecomment-467560883, this is problematic because "applies to" isn't strictly defined for many properties in a way that can be used in normative tests.  And the conclusion of the group in that discussion is that it would be better to fix the resolved value definition than to make "applies to" in property definition boxes as strict as would be required.

Since the used vs computed behavior is about legacy compat, the first step could be to review current implementations more carefully.  Then maybe we can find a better definition for when the result switches from one to the other.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3678 using your GitHub account

Received on Tuesday, 26 February 2019 19:32:22 UTC