Skip to content

[cssom] Don't use "applies to" to define getComputedStyle behavior #3678

Open
@AmeliaBR

Description

@AmeliaBR

The definition of resolved values in CSSOM — 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 #3414 (comment), 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions