[whatwg] Features for responsive Web design
info at anselm-hannemann.com
Wed Oct 17 23:31:57 PDT 2012
Am Donnerstag, 18. Oktober 2012 um 04:05 schrieb Fred Andrews:
> This is good point. Could I just clarify my understanding with an example:
> Given a thumbnail image with srcset:
> srcset="low.jpg 20w, hi.jpg 40w, huge.jpg 80w"
> The webpage may want to have the browser scale the 20w image to say 50px
> without the browser deciding that the 40w image is more appropriate?
> Perhaps it would be realistic for this case to simply not be supported.
srcset cannot support this case. This is one case (of many) why we suggested picture-element.
> Authors have the alternative option of using an encoding with a lower quality
> to reduce the image file size, rather than supplying a low resolution image that
> the browser scales up.
> Perhaps when the file size is far more important than image quality a single image
> would suffice anyway.
I don't think that is an answer for such a problem. It is how you would solve it today. Not how you want to solve it.
> > To: whatwg at lists.whatwg.org (mailto:whatwg at lists.whatwg.org)
> > Date: Mon, 15 Oct 2012 18:40:21 +0200
> > From: odinho at opera.com (mailto:odinho at opera.com)
> > Subject: Re: [whatwg] Features for responsive Web design
> > On Thu, 11 Oct 2012 20:07:04 +0200, Markus Ernst <derernst at gmx.ch (mailto:derernst at gmx.ch)> wrote:
> > > This is why I'd humbly suggest to put information on the image in
> > > @srcset rather than info on the device and media. Such as:
> > > srcset="low.jpg 200w, hi.jpg 400w, huge.jpg 800w"
> > >
> > What about an image gallery, when you have 25 thumbnails on one page? I'm
> > not sure how this will work in cases where you don't want the image to be
> > the "max size" your screen can handle.
> > Even the common case of having an article picture that is not 100% of the
> > screen width will be hard to do in a responsive non-fluid way with
> > predefined breakpoints.
> > --
> > Odin Hørthe Omdal (Velmont/odinho) · Core, Opera Software, http://opera.com
More information about the whatwg