Implement last remembered size for contain-intrinsic-size:auto
Categories
(Core :: Layout, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
Attachments
(5 files, 1 obsolete file)
https://drafts.csswg.org/css-sizing-4/#last-remembered
-
At the time that ResizeObserver events are determined and delivered, if an element has
contain-intrinsic-size: auto
, is capable of being a ResizeObserver target, but does not have size containment, record the current inner dimensions of its principal box as its last remembered size. -
At the time that ResizeObserver events are determined and delivered, if an element has a last remembered size but does not have
contain-intrinsic-size: auto
, remove its last remembered size.
Assignee | ||
Comment 1•3 years ago
|
||
Add logic for storing and removing the last remembered size.
This will be used in bug 1781045 for contain-intrinsic-size:auto.
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Otherwise static analysis may complain.
Depends on D154322
Assignee | ||
Comment 4•3 years ago
|
||
So that it can accept a callback function implemented in C++.
Analogous to what D61436 did for DOMIntersectionObserver.
Depends on D154323
Assignee | ||
Comment 5•3 years ago
|
||
In a follow-up, it will take care of updating the last remembered size
as described in https://drafts.csswg.org/css-sizing-4/#last-remembered
Depends on D154324
Updated•3 years ago
|
Assignee | ||
Comment 6•3 years ago
|
||
They just redirect to LogicalPixelSize's B/ISize(), which return floats.
So it seems pointless to return a double, and static analysis would
complain when storing the double as float for the last remembered size.
Depends on D154325
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a13b2ebf58f4
https://hg.mozilla.org/mozilla-central/rev/aa2517e27f9f
https://hg.mozilla.org/mozilla-central/rev/8a6ebd1ea05a
https://hg.mozilla.org/mozilla-central/rev/625ba7359384
https://hg.mozilla.org/mozilla-central/rev/eb10e9ea7d4f
Comment 9•3 years ago
|
||
Comment on attachment 9286867 [details]
Bug 1781046 - Add logic for updating the last remembered size. r?emilio
Revision D152642 was moved to bug 1784577. Setting attachment 9286867 [details] to obsolete.
Comment 10•2 years ago
•
|
||
Backed out temporarily to test if is the cause of Bug 1784591
Updated•2 years ago
|
Assignee | ||
Comment 11•2 years ago
|
||
Bug 1784575 uses some methods added in D154322, so I guess it should be backed out too or Firefox won't compile.
Comment 12•2 years ago
|
||
I will proceed with a reland in a moment, I backed out the wrong bug, sorry for that.
Comment 13•2 years ago
|
||
Updated•2 years ago
|
Comment 14•2 years ago
|
||
Comment 15•2 years ago
|
||
Description
•