data icon indicating copy to clipboard operation
data copied to clipboard

`image-set-option` doesn't mark `resolution`/`type` as optional

Open loganrosen opened this issue 11 months ago • 1 comments

What information was incorrect, unhelpful, or incomplete?

I noticed that the definition of image-set-option doesn't have resolution/type marked as optional, while it is marked as optional on MDN and in the spec. Note how on MDN and in the spec it's shown as [ <resolution> || type( <string> ) ]?, while here it's shown as [ <resolution> || type(<string>) ]. I'm not sure why this doesn't match what's shown on MDN, as I thought that the formal syntax section is powered by what's in this repository.

What did you expect to see?

I expected the definition in this repo to match what's shown on MDN and in the spec.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

loganrosen avatar Feb 09 '25 05:02 loganrosen

It looks like the documentation on MDN was out-of-date in terms of what powers the formal CSS syntax sections – I've opened an issue accordingly. However, this issue still affects e.g. Stylelint which depends on css-tree, which in turn depends on the data in this repo.

loganrosen avatar Feb 09 '25 05:02 loganrosen