Skip to content

[cssom] Should shorthands in object from getComputedStyle be enumerable? #2877

@upsuper

Description

@upsuper

In #2529 we resolved that object returned from gCS should include shorthands, but it is not clear whether they should be enumerable from from that object.

I think I saw someone iterating the properties from gCS result to copy style of one element to another. If we have every shorthands listed there, there is a risk that stuff would get overridden if the order happens to be unfortunate (shorthand comes after its longhands?)

It was raised during the discussion of #2529.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions