Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-27 Thread Tom Penzer
OK, I've re-worked my proposal a bit from the feedback I've received, and I'll submit to w3.org public-html-comments. Here's my revised proposal: Seeking feedback for my (hopefully relatively painless in practice compared to the alternatives - i.e. -webkit-image-set and html5 ) proposal t

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-25 Thread Allan Sandfeld Jensen
On Wednesday 25 April 2012, Chris Hutten-Czapski wrote: > >> Assuming I'm understanding Kalle correctly, it seems this could > >> already be accomplished with @media resolution? > >> > >> http://www.w3.org/TR/css3-mediaqueries/#resolution > > Not to be too cute about it, but CSS dpi is _always_ 9

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-25 Thread Tom Penzer
Thanks Chris, I'll go bring it up on the relevant w3.org lists (I'm guessing I'll start on public-HTML-comments) and see where that takes me, after refining my idea a bit to use more conventional naming, and to hopefully account for other scales than 2x in an elegant manner. I just wanted to ma

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-25 Thread Chris Hutten-Czapski
>> Assuming I'm understanding Kalle correctly, it seems this could >> already be accomplished with @media resolution? >> >> http://www.w3.org/TR/css3-mediaqueries/#resolution Not to be too cute about it, but CSS dpi is _always_ 96 CSS pixels per CSS inch. What this means onscreen is (almost) comp

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-25 Thread Evan Martin
On Wed, Apr 25, 2012 at 3:22 AM, Kenneth Rohde Christiansen wrote: > So the original iPhone has a dpi of 163, but it reported a CSS dpi of > 96? meaning that in screen width it had around 3,3 CSS inches where as > the physical inches are more close to 1.96. > > Why is this? Because the original iP

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-25 Thread Kenneth Rohde Christiansen
Hi there, On Tue, Apr 24, 2012 at 11:48 PM, Edward O'Connor wrote: > Eric Seidel wrote: > >> Assuming I'm understanding Kalle correctly, it seems this could >> already be accomplished with @media resolution? >> >> http://www.w3.org/TR/css3-mediaqueries/#resolution >> >> @media screen and (min-res

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-24 Thread Edward O'Connor
Eric Seidel wrote: > Assuming I'm understanding Kalle correctly, it seems this could > already be accomplished with @media resolution? > > http://www.w3.org/TR/css3-mediaqueries/#resolution > > @media screen and (min-resolution: 264dpi) { … } > > Which according to: > http://en.wikipedia.org/wiki/

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-24 Thread Tom Penzer
I would prefer something that works gracefully with img html tags, without relying on CSS. Plus, it's the user agent that needs to make the decision of which asset to request, not the server. -Tom P. On Apr 23, 2012, at 9:28 PM, Kalle Vahlman wrote: > 2012/4/24 Tom Penzer : >> Hi Everybody!

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Maciej Stachowiak
It would be more readable to use: @media screen and (min-device-pixel-ratio: 2) { … } The -webkit-image-set proposal explains why it is a useful shorthand despite the existing device pixel ratio option. Regards, Maciej On Apr 23, 2012, at 11:11 PM, Eric Seidel wrote: > Assuming I'm understa

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Eric Seidel
To answer my own question: http://trac.webkit.org/browser/trunk/Source/WebCore/css/MediaQueryEvaluator.cpp#L66 On Mon, Apr 23, 2012 at 11:11 PM, Eric Seidel wrote: > Assuming I'm understanding Kalle correctly, it seems this could > already be accomplished with @media resolution? > > http://www.w3

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Eric Seidel
Assuming I'm understanding Kalle correctly, it seems this could already be accomplished with @media resolution? http://www.w3.org/TR/css3-mediaqueries/#resolution @media screen and (min-resolution: 264dpi) { … } Which according to: http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Kalle Vahlman
2012/4/24 Tom Penzer : > Hi Everybody! > >        As a first-time poster, I am sorry ahead of time for any lapses in > etiquette. I am seeking feedback for my (hopefully relatively painless in > practice compared to the alternatives - i.e. -webkit-image-set and html5 > ) proposal to solve the probl

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Tom Penzer
On Apr 23, 2012, at 3:42 PM, Ryosuke Niwa wrote: > On what standard mailing lists have this idea been proposed or discussed? I have not yet submitted to w3.org public-html or public-html-comments as I wanted to get the take of the webkit community first, since you guys are particularly interes

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Ryosuke Niwa
On what standard mailing lists have this idea been proposed or discussed? At glance, it seems like a bad idea to add a specific element for the double resolution images. What makes us think that someone won't come up with 3x or 4x resolution screens in near future? On Mon, Apr 23, 2012 at 2:44 PM

Re: [webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Edward O'Connor
Hi Tom, You wrote: > I am seeking feedback for my (hopefully relatively painless in > practice compared to the alternatives - i.e. -webkit-image-set and > html5 ) proposal to solve the problem of 2x-res (double- > resolution) images with our current HTML and CSS standards for devices > with high-

[webkit-dev] Double-Resolution (Retina) Images - Re: -webkit-image-set

2012-04-23 Thread Tom Penzer
Hi Everybody! As a first-time poster, I am sorry ahead of time for any lapses in etiquette. I am seeking feedback for my (hopefully relatively painless in practice compared to the alternatives - i.e. -webkit-image-set and html5 ) proposal to solve the problem of 2x-res (double- resolution