Bug 24761
| Summary: | Make it possible to test Full Page Zoom in LayoutTests | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.5 | ||
Simon Fraser (smfr)
It's not possible to fully test full page zoom on LayoutTests.
Using zoom: style does exercise some of the right code paths, but not all of them. When the user zooms, the page is unaware of any change: all the APIs that take and receive coordinates (e.g. event clientX, pageX, offsetX, and document.elementFromPoint()) continue to use "unzoomed" points.
However, if there is zoom style in the content, then those APIs take the zoom into account, and use zoomed points.
So what we need is a DRT API that allows a test to do what Safari does when a page gets zoomed.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |