This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17057 - '"2x" means "maximum pixel density of 2 device pixels per CSS pixel"' the algorithm actually treats this as a minimum so this note should be reworded.
Summary: '"2x" means "maximum pixel density of 2 device pixels per CSS pixel"' the alg...
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 09:01 UTC by contributor
Modified: 2012-09-15 21:05 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-05-15 09:01:47 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html
Multipage: http://www.whatwg.org/C#the-img-element
Complete: http://www.whatwg.org/c#the-img-element

Comment:
'"2x" means "maximum pixel density of 2 device pixels per CSS pixel"' the
algorithm actually treats this as a minimum so this note should be reworded.

Posted from: 82.161.179.17 by annevk@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4; U; en) Presto/2.10.229 Version/11.64
Comment 1 Odin Hørthe Omdal 2012-05-16 12:51:09 UTC
This also affects the steps taking away entries from the candidates based on width and height.

Spec currently says:

> If there are any entries in candidates that have an associated width
> that is greater than max width, then remove them, unless that would
> remove all the entries, in which case remove only the entries whose
> associated width is greater than the smallest such width.

I believe it should say:

> If there are any entries in candidates that have an associated width
> that is equal to or less than max width, then remove them, unless that would
> remove all the entries, in which case remove only the entries whose
> associated width is greater than the smallest such width.

And equally for height.
Comment 2 contributor 2012-07-18 17:31:55 UTC
This bug was cloned to create bug 18171 as part of operation convergence.
Comment 3 Ian 'Hixie' Hickson 2012-09-15 21:05:28 UTC
Can you check the spec again and see if it's ok now? I tweaked this part a few weeks ago and I think it's working as intended now.