Open Bug 1899522 Opened 2 years ago Updated 2 years ago

Bug with v126 zoom implementation

Categories

(Core :: Layout, defect)

Firefox 126
defect

Tracking

()

People

(Reporter: duncan, Unassigned)

Details

Attachments

(2 files)

Attached file zoom-bug.html —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15

Steps to reproduce:

Use the attached test code. It changes the body zoom factor dynamically based on browser width, using a small javascript callback.

Load the page and resize the browser, the two colored boxes change size based on the zoom. They should remain in their relative position and scale smoothly.

Actual results:

At some zoom factors the layout breaks, and the right box moves below the first. Presumably rounding errors in the layout geometry calculations with specific zoom values.

Expected results:

The two boxes should always scale smoothly with the browser window width, never breaking the layout. That's what happens in current versions of Safari (17.x) and Chrome (124), i.e. they work as expected.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

Also not fixed on the v128.0a1 nightly

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Here's a modified version of the testcase showing that the same issue reproduces by simply animating the zoom property, without involving any JS computations.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: