Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[resize-observer] Update initial value of lastReportedSizes #3664 #8125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resize-observer-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ counterpart to {{Window}}'s {{Window/resize}} event.

ResizeObserver's notifications can be used to respond to changes in {{Element}}'s size. Some interesting facts about these observations:

* Observation will fire when observation starts.

* Observation will fire when watched Element is inserted/removed from DOM.

* Observation will fire when watched Element <a>display</a> gets set to none.
Expand All @@ -80,8 +82,6 @@ ResizeObserver's notifications can be used to respond to changes in {{Element}}'

* Observations will not be triggered by CSS transforms.

* Observation will fire when observation starts if Element is [being rendered](https://html.spec.whatwg.org/#being-rendered), and Element's size is not 0,0.

<div class="example">
<pre highlight="html">
&lt;canvas id="ellipse" style="display:block">&lt;/canvas>
Expand Down Expand Up @@ -331,7 +331,7 @@ interface ResizeObservation {

3. Set |this| internal {{ResizeObservation/observedBox}} slot to |observedBox|.

4. Set |this| internal {{ResizeObservation/lastReportedSizes}} slot to [(0,0)].
4. Set |this| internal {{ResizeObservation/lastReportedSizes}} slot to [(-1,-1)].

: <dfn method lt="isActive()">isActive()</dfn>
::
Expand Down