Bug 91467 - Add ref-tests for CSS image-resolution
Summary: Add ref-tests for CSS image-resolution
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Barr
URL: http://www.w3.org/TR/2012/CR-css3-ima...
Keywords:
Depends on: 89745
Blocks: 85262
  Show dependency treegraph
 
Reported: 2012-07-16 20:30 PDT by David Barr
Modified: 2012-07-16 20:30 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Barr 2012-07-16 20:30:49 PDT
The css3-images module is at candidate recommendation.
http://www.w3.org/TR/2012/CR-css3-images-20120417/#the-image-resolution

I propose to introduce image-resolution, initially behind a compile-time flag.

Advertised on webkit-dev:
http://thread.gmane.org/gmane.os.opendarwin.webkit.devel/20505

Now that the parsing and style application aspects of implementation are complete, existing javascript tests only cover layout.

Add ref-tests to verify that rendering is also correct.

As the existing tests already cover parsing and layout, this should be limited to ensuring that:
image-resolution: ${x}dppx
is equivalent to:
zoom: $((1/$x))