Inclusio-Community / json-image-metadata

A specifiction for expressing technical image metadata, with an emphasis on accessibility of data visualizations
2 stars 3 forks source link

How should the `selectors` field be formatted? #42

Open simonvarey opened 1 week ago

simonvarey commented 1 week ago

Currently, examples in the spec suggest that selectors should be an array, although do not make clear how the members of that array should be formatted. In contrast, example JIM documents have selectors as an object.

We should decide between:

simonvarey commented 1 day ago

9.2.2 says: "Unlike CSS, however, it does not use selectors as an "object key", but rather as a value for a selector attribute, to fit the JSON schema and allow multiple rules to use the same selector."