UNCONFIRMED 119764
srcset: Respect updates to display density
https://bugs.webkit.org/show_bug.cgi?id=119764
Summary srcset: Respect updates to display density
Ricky Romero
Reported 2013-08-13 11:26:51 PDT
There are situations in which a browser window may encounter a display density change: 1.) Opening a webpage on a @2x laptop, closing the laptop, then later connecting a @1x display. 2.) Dragging the browser window from a @1x display to a @2x display. 3.) Enabling the developer-only HiDPI mode in OS X. Webkit does not appear to detect these changes and load in the correct images from srcset when they are available. This is a bug.
Attachments
Dean Jackson
Comment 1 2013-08-14 04:23:38 PDT
Yeah, -image-set suffers equally.
Radar WebKit Bug Importer
Comment 2 2013-08-14 04:24:14 PDT
Beth Dakin
Comment 3 2013-08-14 10:58:49 PDT
(In reply to comment #1) > Yeah, -image-set suffers equally. Are you sure? All of these things worked at some point. Can either of you please provide a concrete set of steps to reproduce this bug?
Beth Dakin
Comment 4 2013-08-14 11:06:32 PDT
(In reply to comment #3) > (In reply to comment #1) > > Yeah, -image-set suffers equally. > > Are you sure? All of these things worked at some point. Can either of you please provide a concrete set of steps to reproduce this bug? I should clarify. -image-set worked at some point. But of course srcset is new, so that has never worked.
Sam Weinig
Comment 5 2013-08-14 11:10:17 PDT
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #1) > > > Yeah, -image-set suffers equally. > > > > Are you sure? All of these things worked at some point. Can either of you please provide a concrete set of steps to reproduce this bug? > > I should clarify. -image-set worked at some point. But of course srcset is new, so that has never worked. This works for image-set because on device scale factor changes we force a style recalc in all frames in the page (see Page::setDeviceScaleFactor). Page::setDeviceScaleFactor is getting a bit intense, it may (or may not) make sense to generalize things a bit and add some DeviceScaleFactorListener generalization that HTMLImageElement could register for.
Note You need to log in before you can comment on or make changes to this bug.