Closed Bug 1785305 Opened 3 years ago Closed 3 years ago

[resize-observer] When first observing an element with ResizeObserver, lastReportedSize should get initialized with a -1 x -1 size

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: dshin)

References

Details

Attachments

(1 file, 1 obsolete file)

A resolution was made for csswg-drafts/#3664.

[resize-observer] The initial size of ResizeObservation

  • RESOLVED: When first observing an element with ResizeObserver, lastReportedSize gets initialized with a -1 x -1 size

Discussion.

dshin: maybe you'd be interested to take this, since you've been in the ResizeObserver neighborhood recently?

Summary: [resize-observer] The initial size of ResizeObservation → [resize-observer] When first observing an element with ResizeObserver, lastReportedSize should get initialized with a -1 x -1 size
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Attachment #9291778 - Attachment description: Bug 1785305: Resize Observer's last reported size is -1x-1 initially. r=#layout-reviewers → Bug 1785305: Set Resize Observer's last reported size to -1x-1 initially. r=#layout-reviewers
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14e81415cae1 Set Resize Observer's last reported size to -1x-1 initially. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35745 for changes under testing/web-platform/tests

Some anonymous children are important for properly sizing their parents
even when those parents hide content with content-visibility. This is
shown by regressions in the proper layout of some form elements with
content-visibility.

This change introduces a more conservative approach for avoiding layout
of hidden content. Instead of leaving all children dirty during reflow,
reflow anonymous frames (and nsComboboxDisplayFrame, a specialized kind
of anonymous frame). This change means that frames may only lay out some
of their children, so it must introduce some more changes to assumptions
during line layout.

In addition, this change renames content-visibility related methods in
nsIFrame in order to make it more obvious what they do.

Wrong bug #?

Flags: needinfo?(mrobinson)
Attachment #9293157 - Attachment is obsolete: true

(In reply to Emilio Cobos Álvarez (:emilio) from comment #8)

Wrong bug #?

Yes. Sorry. I'm not sure what happened there.

Flags: needinfo?(mrobinson)
Upstream PR was closed without merging
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: