[resize-observer] When first observing an element with ResizeObserver, lastReportedSize should get initialized with a -1 x -1 size
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
| 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
Comment 1β’3 years ago
|
dshin: maybe you'd be interested to take this, since you've been in the ResizeObserver neighborhood recently?
Updatedβ’3 years ago
|
| Assignee | |
Updatedβ’3 years ago
|
Comment 2β’3 years ago
|
This will make this hack unnecessary, so please remove it while doing this: https://searchfox.org/mozilla-central/rev/f3616b887b8627d8ad841bb1a11138ed658206c5/dom/base/ResizeObserver.cpp#298-309
| Assignee | |
Comment 3β’3 years ago
|
Updatedβ’3 years ago
|
Comment 4β’3 years ago
|
Comment 5β’3 years ago
|
|
| bugherder | |
Comment 6β’3 years ago
|
Comment 7β’3 years ago
|
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.
Updatedβ’3 years ago
|
Comment 9β’3 years ago
|
(In reply to Emilio Cobos Γlvarez (:emilio) from comment #8)
Wrong bug #?
Yes. Sorry. I'm not sure what happened there.
Comment 10β’3 years ago
|
Comment 11β’3 years ago
|
