@@ -540,7 +540,7 @@ Overriding Contained Intrinsic Sizes: the 'contain-intrinsic-*' properties</h3>
540
540
: <dfn>auto && <<length>></dfn>
541
541
:: The corresponding axis has an [=explicit intrinsic inner size=]
542
542
of its [=last remembered size=] .
543
- If a [=last remembered size=] does not yet exist,
543
+ If a [=last remembered size=] does not exist,
544
544
instead use the specified <<length>> .
545
545
</dl>
546
546
@@ -601,19 +601,28 @@ Last Remembered Size</h4>
601
601
offering the performance benefits of [=size containment=]
602
602
while <em> probably</em> sizing accurately to its contents.
603
603
604
+ Only elements capable of being {{ResizeObserver}} targets can have a [=last remembered size=] .
605
+
604
606
<div algorithm="last remembered size">
605
607
The [=last remembered size=] of an element is determined by:
606
608
607
- * At the time that ResizeObserver events are determined and delivered,
608
- if an element has ''contain-intrinsic-size: auto''
609
+ * At the time that {{ResizeObserver}} events are determined and delivered,
610
+ if an element has ''contain-intrinsic-size: auto'' ,
611
+ is capable of being a {{ResizeObserver}} target,
609
612
but does not have [=size containment=] ,
610
- record its current inner dimensions
613
+ record the current inner dimensions of its [=principal box=]
611
614
as its [=last remembered size=] .
612
615
613
- An element might not have a [=last remembered size=] ,
614
- if it has never been rendered without [=size containment=] .
615
- (In this case, it will instead use the fallback value
616
- provided along with ''contain-intrinsic-size/auto'' .)
616
+ * At the time that {{ResizeObserver}} events are determined and delivered,
617
+ if an element has a [=last remembered size=]
618
+ but does <em> not</em> have ''contain-intrinsic-size: auto'' ,
619
+ remove its [=last remembered size=] .
620
+
621
+ Note: The [=last remembered size=] is state attached to the <em> element</em> ,
622
+ not any particular box generated by the element.
623
+ So long as the element retains ''contain-intrinsic-size: auto'' ,
624
+ it will remember its [=last remembered size=]
625
+ even across changes such as going to/from ''display: none'' .
617
626
</div>
618
627
619
628
<h4 id='cis-scrollbars'>
0 commit comments