Skip to content

Commit ea7af4e

Browse files
TremayneChristfantasai
authored andcommitted
[resize-observer] Update initial value of lastReportedSizes
1 parent 520e257 commit ea7af4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resize-observer-1/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ counterpart to {{Window}}'s {{Window/resize}} event.
7474

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

77+
* Observation will fire when observation starts.
78+
7779
* Observation will fire when watched Element is inserted/removed from DOM.
7880

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

8385
* Observations will not be triggered by CSS transforms.
8486

85-
* 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.
86-
8787
<div class="example">
8888
<pre highlight="html">
8989
&lt;canvas id="ellipse" style="display:block">&lt;/canvas>
@@ -333,7 +333,7 @@ interface ResizeObservation {
333333

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

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

338338
: <dfn method lt="isActive()">isActive()</dfn>
339339
::

0 commit comments

Comments
 (0)