Skip to content

[css-typed-om] "get all values from a StylePropertyMap" assumes underlying model might not be list #571

@dbaron

Description

@dbaron

Typed OM defines an algorithm to get all values from a StylePropertyMap. This says:

  1. If StylePropertyMap’s property model contains an entry for property:

    1. If property is a list-valued property, return the list of values assigned to that property.

    2. If property is not a list-valued property, let values initially be the empty list and append the value assigned to the property to this list and return values.

However, earlier the spec says:

A StylePropertyMapReadOnly object has an associated property model, which is a list of property - sequence<CSSStyleValue> pairs.

Given this, it's not clear why this distinction between list-valued and non-list-valued properties needs to be made; they're all represented as sequence<CSSStyleValue>.

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