-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-mixins-1] <type()>
conflicts with a previous definition in css-images-4
#10810
Comments
They do not overlap mainly because one is a function and the other is a type. You might be interested by speced/bikeshed#2906. |
I created the issue on the Bikeshed repo because I think it should not generate a link from
... but is incompatible with:
In my opinion,
Not all functions are context-insensitive (eg. |
Got it, thank you. I am going to try and get away with ignoring entries like {
"name": "type()",
"value": "type( <string> )",
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image-set-type",
"type": "function"
} as found in: values: [
// ...
{
"name": "image-set()",
"prose": "Delivering the most appropriate image resolution for a user’s device can be a difficult task. Ideally, images should be in the same resolution as the device they’re being viewed in, which can vary between users. However, other factors can factor into the decision of which image to send; for example, if the user is on a slow mobile connection, they may prefer to receive lower-res images rather than waiting for a large proper-res image to load. The image-set() function allows an author to ignore most of these issues, simply providing multiple resolutions of an image and letting the UA decide which is most appropriate in a given situation.",
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image-set",
"type": "function",
"value": "image-set( <image-set-option># )",
"values": [
{
"name": "type()",
"value": "type( <string> )",
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image-set-type",
"type": "function"
}
]
}, I think this should be fine for my purposes. Thank you for the explanation and context 🙇 |
css-images-4
defines: https://drafts.csswg.org/css-images-4/#funcdef-image-set-typecss-mixins-1
defines: https://drafts.csswg.org/css-mixins-1/#function-ruleThese are different and do not overlap in practice because one is only valid in declaration values and the other only in
@function
preludes.But the conflicting definition makes it harder to extract syntax information from specs.
It is also apparent in the specs itself because
<type()>
incss-mixins-1
actually links to the definition incss-images-4
.The text was updated successfully, but these errors were encountered: