Bug 85264

Summary: WIP: css3-images image-resolution
Product: WebKit Reporter: David Barr <davidbarr>
Component: CSSAssignee: David Barr <davidbarr>
Status: ASSIGNED ---    
Severity: Normal CC: bfulgham, macpherson, mikelawther, noel.gordon
Priority: P2 Keywords: DoNotImportToRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.w3.org/TR/2011/WD-css3-images-20110217/#image-resolution
See Also: https://bugs.webkit.org/show_bug.cgi?id=85262
Attachments:
Description Flags
Draft patch none

Description David Barr 2012-04-30 23:09:40 PDT
This bug is to track the initial draft of adding image-resolution.
I expect it to be broken into a series of smaller patches.
Comment 1 David Barr 2012-04-30 23:20:57 PDT
Created attachment 139586 [details]
Draft patch
Comment 2 David Barr 2012-04-30 23:33:03 PDT
The attached draft patch demonstrates which components of the CSS stack are relevant to this feature.
It does not implement extracting resolution data from images or the 'snap' keyword.
Given that my primary goal was to enumerate the affected components, I expect some bugs.
This feature should be testable using javascript tests, ie no pixel tests required.

TODO: add an enum for image-resolution flags (snap/from-image) and implement snap.
Comment 3 Brent Fulgham 2022-07-13 09:49:58 PDT
The code has changed significantly since this patch was created. We probably can't use it in its current form.