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
{{ message }}
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
Element <source> have not full description about srcset and sizes attribute. https://www.w3.org/TR/html52/semantics-embedded-content.html#elementdef-source
For now description of <source> element:
"If the srcset attribute has any image candidate strings using a width descriptor, the sizes content attribute must also be present, and the value must be a valid source size list."
This description is not describe case "if have sizes attribute ... must be width descriptor". But this case have <img> element:
"If a <source> element has a sizes attribute present or an <img> element has a sizes attribute present, all image candidate strings for that element must have the width descriptor specified."
So for most clear and explicit description <img> and <source> element must have same description about srcset and sizes attribute like this: "If the srcset attribute of a <source> and <img> element has any image candidate strings using a width descriptor, the sizes content attribute must also be present, and the value must be a valid source size list OR IF a <source> and <img> element has a sizes attribute present, all image candidate strings for that element must have the width descriptor specified."
And more one problem about width descriptor described only in <img> element description.
"If an image candidate string for a source or img element has the width descriptor specified, all other image candidate strings for that element must also have the width descriptor specified."
I think same text must be in <sourse> element description too.
The text was updated successfully, but these errors were encountered:
We're closing this issue on the W3C HTML specification because the W3C and WHATWG are now working together on HTML, and all issues are being discussed on the WHATWG repository.
If you filed this issue and you still think it is relevant, please open a new issue on the WHATWG repository and reference this issue (if there is useful information here). Before you open a new issue, please check for existing issues on the WHATWG repository to avoid duplication.
Re-file Issue #1300 from programmer3000.
from programmer3000:
The text was updated successfully, but these errors were encountered: