Closed Bug 1791375 Opened 2 years ago Closed 2 years ago

[resize-observer] Support multiple fragments in ResizeObserver

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(3 files)

In https://github.com/w3c/csswg-drafts/issues/3673#issuecomment-467221565 the CSSWG resolved that ResizeObserver should expose an array of fragment sizes.

Right now the arrays always has a single size.

Let's just populate it behind a pref.

This is in preparation of supporting multiple fragments, since we want
to track the logical sizes, and fragments might potentially have
different writing modes (but not sure if it can happen in practice).

This patch should have no observable effect.

Depends on D157633

This is in preparation of supporting multiple fragments, since we should
track each fragment size separately.

This patch should have no observable effect.

Depends on D157639

As per CSSWG resolution: https://github.com/w3c/csswg-drafts/issues/3673

Some details are not clear, so implement it behind a pref, disabled by
default.

Depends on D157640

Blocks: 1791402
Pushed by oriol-bugzilla@hotmail.com:
https://hg.mozilla.org/integration/autoland/rev/b6566510caed
Switch ResizeObserver APIs from gfx::Size to LogicalPixelSize. r=emilio
https://hg.mozilla.org/integration/autoland/rev/2ffdf43d7cbb
Switch ResizeObserver APIs to using an array of sizes. r=emilio
https://hg.mozilla.org/integration/autoland/rev/05ef9b63051c
Handle multiple fragments in ResizeObserver. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/36000 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: