Open Bug 616261 Opened 15 years ago Updated 3 years ago

onresize event doesn't supply enough information

Categories

(Core :: Layout, defect)

x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: russell.harper, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Build Identifier: version 3.6.12 If a page is zoomed in or out or reset, an onresize event is triggered. There is nothing relayed to the DOM to determine what the "trigger" was and what the zoom level is. This might be used for example, to keep buttons from getting too tiny, or to position a floating element appropriately. Reproducible: Always Steps to Reproduce: 1. code an onresize event handler 2. zoom in 3. inspect the event 4. zoom out 5. inspect the event Actual Results: No substantive difference in events or anywhere else in DOM. Expected Results: If we could get the actual trigger (e.g. "zoom-in", "zoom-out", "zoom-reset"), the previous zoom level and the new zoom level, that would be satisfactory.
I think we want it to be hard for pages to override zoom. A user who wants to zoom should be able to do so.
I agree. We don't really want sites customizing their layout based on zoom level. Although we do support the moz-device-pixel-ratio media query, and the mozmm unit, which let you do some amount of customization.
Er, forget about mozmm there. It doesn't interfere with zoom.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.