The type() function appears in https://drafts.csswg.org/css-values-5/#attr-notation, https://drafts.csswg.org/css-images-4/#funcdef-image-set-type, and https://drafts.csswg.org/css-mixins/#typedef-type without one of these really specifying what exactly it is.
You can derive it’s meaning, but there’s no single source of truth describing it as a standalone thing. Can we specify the type() function in one spec (which one) and have all three uses point to it?
I also noticed it has two slightly different kinds of usage:
- In
css-images-4 the argument to type() itself is parsed into a mime-type, which the UA uses to check whether it supports the format or not. It does not determine how the <image> of the [<image-set-option>](https://drafts.csswg.org/css-images-4/#typedef-image-set-option) should actually be parsed.
- In
css-values-5 and css-mixins the argument to type() is meant to determine how the preceding value should be parsed.
Kinda the same, but not exactly.