Skip to content

[css-typed-om] StylePropertMap.set for non-list properties #512

@darrnshn

Description

@darrnshn

What should StylePropertyMap.set do for non-list properties when given multiple arguments? e.g.

styleMap.set('width', CSS.px(1), CSS.px(2), CSS.px(3));
styleMap.getAll('width'); // ???

According to the spec, the "property model" will contain an entry ("width", [1px, 2px, 3px]). It's then unclear what getAll should return. If we follow the spec strictly, we return [[1px, 2px, 3px]] (a single-element list containing a 3-element list), which is probably not right... Should set throw an exception or just set the first element?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions