You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an element has a srcset attribute present, all image candidate strings for that element must have the width descriptor specified.
This seems like this contradicts what is stated above it (and pasted below in this issue) in that an image candidate string for that element must have 0 or one of the following: a width descriptor or a pixel density descriptor.
Zero or one of the following:
A width descriptor, consisting of: ASCII whitespace, a valid non-negative integer giving a number greater than zero representing the width descriptor value, and a U+0077 LATIN SMALL LETTER W character.
A pixel density descriptor, consisting of: ASCII whitespace, a valid floating-point number giving a number greater than zero representing the pixel density descriptor value, and a U+0078 LATIN SMALL LETTER X character.
It sounds like it is saying in 1 spot that you can only have one or the other (or none) and then the other says they must all have the width descriptor.
The text was updated successfully, but these errors were encountered:
https://html.spec.whatwg.org/multipage/images.html#srcset-attributes
This seems like this contradicts what is stated above it (and pasted below in this issue) in that an image candidate string for that element must have 0 or one of the following: a width descriptor or a pixel density descriptor.
It sounds like it is saying in 1 spot that you can only have one or the other (or none) and then the other says they must all have the width descriptor.
The text was updated successfully, but these errors were encountered: