forked from Wilto/draft-prop
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
(Moved from #85, where Yoav was suggesting an 'h' descriptor within the sizes="" attribute for completely different reasons.)
Could such a descriptor also enable height-based selection? I'd be all for that, if there's an elegant way to integrate it into the syntax and if it doesn't complicate the choosing algorithm too much...
<source sizes-h="100vh" srcset="large.jpg 768w 1024h, small.jpg 384w" />
?
While height-constrained layouts (especially responsive ones) aren't common, they're out there. It's much more common to see slideshow modes that constrain on both height and width. To accommodate that sort of thing, though—defining boxes instead of lengths—the syntax + the source selection might have to get a bit hairy...
max-ch9i, andrew-ireland and strarsishadyDod and strarsis