VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1785305

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


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

[resize-observer] When first observing an element with ResizeObserver, lastReportedSize should get initialized with a -1 x -1 size
Core
Layout
unspecified
Unspecified
Unspecified
defect
Points:
---
RESOLVED FIXED
RESOLVED
FIXED
106 Branch
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
firefox106 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox106
firefox152
firefox153
firefox154
---
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 
Reporter

Description

β€’
3 years ago

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

Updated

β€’
3 years ago
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

Comment 4

β€’
3 years ago
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

Comment 5

β€’
3 years ago
bugherder
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)
You need to log in before you can comment on or make changes to this bug.