@@ -213,7 +213,7 @@ Preferred Aspect Ratios: the 'aspect-ratio' property</h3>
213
213
214
214
<dt> <dfn>auto && <<ratio>></dfn>
215
215
<dd>
216
- If both ''auto'' and a <<ratio>> are specified together,
216
+ If both ''aspect-ratio/ auto'' and a <<ratio>> are specified together,
217
217
the [=preferred aspect ratio=] is the specified ratio
218
218
of ''<var>width</var> / <var>height</var>''
219
219
unless it is a [=replaced element=] with a [=natural aspect ratio=] ,
@@ -520,7 +520,7 @@ Overriding Contained Intrinsic Sizes: the 'contain-intrinsic-*' properties</h3>
520
520
521
521
<pre class=propdef>
522
522
Name : contain-intrinsic-width, contain-intrinsic-height, contain-intrinsic-block-size, contain-intrinsic-inline-size
523
- Value : none | <<length>> | auto <<length>>
523
+ Value : auto? [ none | <<length>> ]
524
524
Initial : none
525
525
Inherited : no
526
526
Logical property group : contain-intrinsic-size
@@ -543,32 +543,26 @@ Overriding Contained Intrinsic Sizes: the 'contain-intrinsic-*' properties</h3>
543
543
would still size according to the specified grid,
544
544
usually ending up with a larger content size than specified.
545
545
546
- Values are defined as:
547
-
548
546
<dl dfn-type=value dfn-for="contain-intrinsic-width, contain-intrinsic-height, contain-intrinsic-block-size, contain-intrinsic-inline-size, contain-intrinsic-size">
549
- : <dfn>none</dfn>
550
- :: The corresponding axis does not have an [=explicit intrinsic inner size=] .
551
-
552
- : <dfn><<length>></dfn>
553
- :: The corresponding axis has an [=explicit intrinsic inner size=] of the specified <<length>> .
554
-
555
- <wpt pathprefix="css/css-contain/">
556
- content-visibility/content-visibility-058.html
557
- </wpt>
558
-
559
- : <dfn>auto <<length>></dfn>
560
- :: If the element has a [=last remembered size=]
547
+ : <dfn>auto</dfn> ? [ <dfn>none</dfn> | <<length>> ]
548
+ :: If ''contain-intrinsic-size/auto'' is specified
549
+ and the element has a [=last remembered size=]
561
550
and is currently [=skipping its contents=] ,
562
- its [=explicit intrinsic inner size=]
563
- is the [=last remembered size=] .
564
-
551
+ its [=explicit intrinsic inner size=] in the corresponding axis
552
+ is the [=last remembered size=] in that axis .
553
+
565
554
Note: This occurs, for example,
566
555
when an element with ''content-visibility: auto''
567
556
is off-screen.
568
557
569
558
Otherwise,
570
- its [=explicit intrinsic inner size=]
571
- is the specified <<length>> .
559
+ the corresponding axis either doesn't have an [=explicit intrinsic inner size=]
560
+ (if ''contain-intrinsic-size/none'' is specified)
561
+ or has an [=explicit intrinsic inner size=] of the specified <<length>> .
562
+
563
+ <wpt pathprefix="css/css-contain/">
564
+ content-visibility/content-visibility-058.html
565
+ </wpt>
572
566
</dl>
573
567
574
568
If an element has an [=explicit intrinsic inner size=] in an axis,
@@ -596,7 +590,7 @@ Overriding Contained Intrinsic Sizes: the 'contain-intrinsic-*' properties</h3>
596
590
597
591
<pre class="propdef shorthand">
598
592
Name : contain-intrinsic-size
599
- Value : [ none | <<length>> | auto <<length>> ]{1,2}
593
+ Value : [ auto? [ none | <<length>> ] ]{1,2}
600
594
</pre>
601
595
602
596
'contain-intrinsic-size' is a shorthand property
@@ -619,7 +613,7 @@ Last Remembered Size</h4>
619
613
even slightly,
620
614
it can cause unsightly scrollbars or accidentally-hidden content.
621
615
622
- The ''contain-intrinsic-size: auto'' value allows a middle-ground:
616
+ The ''contain-intrinsic-size/ auto'' keyword of ''contain-intrinsic-size'' allows a middle-ground:
623
617
if an element is ever <em> not</em> [=size containment|size-contained=] ,
624
618
this value causes the element to remember its size
625
619
(calculated as normal by layout);
@@ -634,20 +628,20 @@ Last Remembered Size</h4>
634
628
The [=last remembered size=] of an element is determined by:
635
629
636
630
* At the time that {{ResizeObserver}} events are determined and delivered,
637
- if an element has ''contain-intrinsic-size: auto'' ,
631
+ if an element has a ''contain-intrinsic-size/ auto'' keyword in ''contain-intrinsic-size'' property ,
638
632
is capable of being a {{ResizeObserver}} target,
639
633
but does not have [=size containment=] ,
640
634
record the current inner dimensions of its [=principal box=]
641
635
as its [=last remembered size=] .
642
636
643
637
* At the time that {{ResizeObserver}} events are determined and delivered,
644
638
if an element has a [=last remembered size=]
645
- but does <em> not</em> have ''contain-intrinsic-size: auto'' ,
639
+ but does <em> not</em> have ''contain-intrinsic-size/ auto'' keyword in ''contain-intrinsic-size'' property ,
646
640
remove its [=last remembered size=] .
647
641
648
642
Note: The [=last remembered size=] is state attached to the <em> element</em> ,
649
643
not any particular box generated by the element.
650
- So long as the element retains ''contain-intrinsic-size: auto'' ,
644
+ So long as the element retains ''contain-intrinsic-size/ auto'' keywrod in ''contain-intrinsic-size'' property ,
651
645
it will remember its [=last remembered size=]
652
646
even across changes such as going to/from ''display: none'' .
653
647
</div>
@@ -995,6 +989,7 @@ Recent Changes</h3>
995
989
* Fixed some errors in the [[#aspect-ratio-size-transfers]] section,
996
990
aligning the behavior to not conflict with behavior defined by CSS2 / CSS Flex Layout / etc.
997
991
(<a href="https://github.com/w3c/csswg-drafts/issues/6071">Issue 6071</a> )
992
+ * Added ''contain-intrinsic-size: auto none'' syntax.
998
993
999
994
Significant changes since the <a href="https://www.w3.org/TR/2020/WD-css-sizing-4-20200526/">26 May 2020 First Public Working Draft</a> include:
1000
995
0 commit comments