-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
This may be somewhat off-topic (please feel free to redirect me, if so) but one aspect of the parsing algorithm is still unclear to me. If a platform (e.g. WordPress) generated image markup that looks like this (note the omission of a
loading="lazy"attribute):<img src="200.jpg" width="200" height="200" srcset="200.jpg 200w, 400.jpg 400w, 600.jpg 600w" sizes="auto, 200px" />Would the omission of the loading attribute cause
sizesto be calculates as the default100vwvalue, would the200pxvalue be respected, or would size containment come into play? I would hope that the the "200px" value would be respected in this case so that platforms could addautoto the beginning of asizesand dynamically decide whether to add aloadingattribute while constructing the markup. In other words, ifautocan't be applied because the image is not being lazy loaded, then the browser should respect the next items in the media condition.
Originally posted by @joemcgill in #9493 (comment)
Falling back to the next value seems like it could be useful. Maybe make it conforming also.