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
It should be possible to set height requirements on background images and picture elements (using the media property of their source elements).
Generating the right media queries and markup is not too much of a problem; I got something like this working on a previous (Jekyll-specific) iteration. The bigger issue is how to specify height-and-width requirements.
It should be possible to set height requirements on background images and
picture
elements (using themedia
property of theirsource
elements).Generating the right media queries and markup is not too much of a problem; I got something like this working on a previous (Jekyll-specific) iteration. The bigger issue is how to specify height-and-width requirements.
I originally wrote the bg-size-parser to help with this, since I mostly find height restrictions useful for background images. Ideally, I'd like to use syntax / examples being proposed for a future sizes/srcset spec.
The text was updated successfully, but these errors were encountered: