Re: [csswg-drafts] [css-images] simplify the syntax of `image-set()` (#7662)

For what it's worth, I've [created a bug report](https://bugzilla.mozilla.org/show_bug.cgi?id=1789918) to fix that in Gecko.

> I think it would be strictly worse to manually list all the `<image>` variants excluding `<image-set()>` specifically;

I agree with Tab that manually keeping the syntaxes in sync would cause headaches. Though reading that, I immediately thought that "<image> except <image-set()>" _could_ be expressed in grammar. So this would avoid having to maintain them manually.

Use cases for being able to express this in grammar are authoring tools, syntax information on MDN and similar outputs and also custom property syntax definitions.

Contrived but valid example for a custom property: Imagine you have a custom property that takes an `<image>` value but you explicitly want to exclude `<url>`. At the moment, this wouldn't be possible.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7662#issuecomment-1241204566 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 8 September 2022 20:32:56 UTC