Skip to content
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

"If an element has a srcset attribute present, a..." #3262

Closed
treyeckels opened this issue Nov 28, 2017 · 1 comment
Closed

"If an element has a srcset attribute present, a..." #3262

treyeckels opened this issue Nov 28, 2017 · 1 comment

Comments

@treyeckels
Copy link

https://html.spec.whatwg.org/multipage/images.html#srcset-attributes

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.

@jdm
Copy link
Member

jdm commented Nov 28, 2017

This is an exact duplicate of #3250.

@domenic domenic closed this as completed Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants