You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The [=layout containment/containing box=][=establishes an independent formatting context=].
557
+
1. The [=layout containment box=][=establishes an independent formatting context=].
558
558
559
559
<wpt>
560
560
contain-layout-ifc-022.html
@@ -564,10 +564,10 @@ Layout Containment</h3>
564
564
</wpt>
565
565
566
566
2. If at least one [=fragmentation container=] of a [=fragmentation context=] has [=layout containment=],
567
-
or if at least one [=fragmentation container=] of a [=fragmentation context=] is a descendant of [=layout containment/containing box=] for layout containment
567
+
or if at least one [=fragmentation container=] of a [=fragmentation context=] is a descendant of [=layout containment box=]
568
568
<strong>and</strong> at least one subsequent [=fragmentation container=] of the same [=fragmentation context=]
569
569
is not a descendant of that same element with layout containment,
570
-
then the first [=layout containment/containing box=] for [=layout containment=]
570
+
then the first [=layout containment box=]
571
571
which is either a [=fragmentation container=] itself
572
572
or is an ancestor of a [=fragmentation container=]
573
573
must “trap” the remainder of the [=fragmented flow=]:
@@ -620,7 +620,7 @@ Layout Containment</h3>
620
620
In this [[CSS-REGIONS-1]] example,
621
621
content can flow from <code>#a</code> to <code>#b</code>,
622
622
from <code>#b</code> to <code>#c</code>.
623
-
However as <code>#c</code> is the last fragment container in the first containing box for layout containment,
623
+
However as <code>#c</code> is the last fragment container in the first [=layout containment box=]
624
624
it traps all the remaining content,
625
625
and nothing gets flowed into <code>#d</code>, <code>#e</code>, or <code>#f</code>.
626
626
</div>
@@ -640,7 +640,7 @@ Layout Containment</h3>
640
640
contain-layout-ink-overflow-020.html
641
641
</wpt>
642
642
643
-
4. The [=layout containment/containing box=] acts as a containing block for absolutely positioned and fixed positioned descendants.
643
+
4. The [=layout containment box=] acts as a containing block for absolutely positioned and fixed positioned descendants.
644
644
645
645
<wpt>
646
646
contain-layout-006.html
@@ -649,15 +649,15 @@ Layout Containment</h3>
649
649
contain-layout-cell-002.html
650
650
</wpt>
651
651
652
-
5. The [=layout containment/containing box=] creates a <a>stacking context</a>.
652
+
5. The [=layout containment box=] creates a <a>stacking context</a>.
653
653
654
654
<wpt>
655
655
contain-layout-016.html
656
656
contain-layout-017.html
657
657
contain-layout-018.html
658
658
</wpt>
659
659
660
-
6. [=Forced breaks=] are allowed within [=layout containment/containing boxes=] for [=layout containment=],
660
+
6. [=Forced breaks=] are allowed within [=layout containment boxes=]
661
661
but do not propagate to the parent as otherwise described in [[CSS-BREAK-3#break-between]].
662
662
663
663
<wpt>
@@ -670,9 +670,9 @@ Layout Containment</h3>
670
670
671
671
7. For the purpose of the 'vertical-align' property,
672
672
or any other property whose effects
673
-
need to relate the position of the [=layout containment/containing box=]'s baseline
673
+
need to relate the position of the [=layout containment box=]'s baseline
674
674
to something other than its descendants,
675
-
the [=layout containment/containing box=] is treated as having no baseline.
675
+
the [=layout containment box|containment box=] is treated as having no baseline.
676
676
677
677
<wpt>
678
678
contain-layout-baseline-001.html
@@ -688,16 +688,16 @@ Layout Containment</h3>
688
688
Possible optimizations that can be enabled by <a>layout containment</a> include (but are not limited to):
689
689
690
690
1. When laying out the page,
691
-
the contents of separate containing boxes
691
+
the contents of separate [=layout containment boxes|containment boxes=]
692
692
can be laid out in parallel,
693
693
as they're guaranteed not to affect each other.
694
694
695
695
2. When laying out the page,
696
-
if the containing box is off-screen or obscured
697
-
and the layout of the visible parts of the screen do not depend on the size of the containing box
698
-
(for example, if the containing box is near the end of a block container,
696
+
if the [=layout containment box|containment box] is off-screen or obscured
697
+
and the layout of the visible parts of the screen do not depend on the size of the [=layout containment box|containment box=]
698
+
(for example, if the [=layout containment box|containment box=] is near the end of a block container,
699
699
and you're viewing the beginning of the block container),
700
-
the layout of the containing box' contents can be delayed or done at a lower priority.
700
+
the layout of the [=layout containment box|containment box]' contents can be delayed or done at a lower priority.
701
701
702
702
(When paired with <a>size containment</a>,
703
703
this optimization can be applied more liberally.)
@@ -711,7 +711,7 @@ Paint Containment</h3>
711
711
or a <a spec="css-display-3" lt="atomic inline">non-atomic</a><a spec="css-display-3">inline-level</a> box,
712
712
paint containment has no effect.
713
713
Otherwise, giving an element <dfn export>paint containment</dfn>
714
-
makes its [=principal box=] a <dfn for="paint containment">containing box</dfn> for [=paint containment=]
714
+
makes its [=principal box=] a <dfn>paint containment box</dfn>
715
715
and has the following effects:
716
716
717
717
<wpt>
@@ -733,7 +733,7 @@ Paint Containment</h3>
733
733
734
734
1. The contents of the element
735
735
including any [=ink overflow|ink=] or [=scrollable overflow=]
736
-
must be clipped to the <a>padding edge</a> of the [=paint containment/containing box=],
736
+
must be clipped to the <a>padding edge</a> of the [=paint containment box=],
737
737
taking <a>corner clipping</a> into account.
738
738
This does not include the creation of any mechanism
739
739
to access or indicate the presence of the clipped content;
@@ -772,7 +772,7 @@ Paint Containment</h3>
772
772
contain-paint-table-001.html
773
773
contain-paint-table-002.html
774
774
</wpt>
775
-
2. The [=paint containment/containing box=] acts as a containing block for absolutely positioned and fixed positioned descendants.
775
+
2. The [=paint containment box=] acts as a containing block for absolutely positioned and fixed positioned descendants.
776
776
777
777
<wpt>
778
778
contain-paint-009.html
@@ -781,15 +781,15 @@ Paint Containment</h3>
781
781
contain-paint-023.html
782
782
contain-paint-024.html
783
783
</wpt>
784
-
3. The [=paint containment/containing box=] creates a <a>stacking context</a>.
784
+
3. The [=paint containment box=] creates a <a>stacking context</a>.
785
785
786
786
<wpt>
787
787
contain-paint-020.html
788
788
contain-paint-021.html
789
789
contain-paint-025.html
790
790
contain-subgrid-001.html
791
791
</wpt>
792
-
4. The [=paint containment/containing box=][=establishes an independent formatting context=].
792
+
4. The [=paint containment box=][=establishes an independent formatting context=].
793
793
794
794
<wpt>
795
795
contain-paint-ifc-011.html
@@ -804,7 +804,7 @@ Paint Containment</h3>
804
804
<div class=informative>
805
805
Possible optimizations that can be enabled by <a>paint containment</a> include (but are not limited to):
806
806
807
-
1. If the containing box is off-screen or obscured,
807
+
1. If the [=paint containment box|containment box=] is off-screen or obscured,
808
808
the UA can directly skip trying to paint its contents,
809
809
as they're guaranteed to be off-screen/obscured as well.
810
810
@@ -909,6 +909,8 @@ This appendix is <em>informative</em>.
909
909
<li>
910
910
phrasing improvement in note in [[#containment-paint]]
911
911
912
+
<li>
913
+
terminology change: replace "containing box" with "containment box"
912
914
</ul>
913
915
<li>
914
916
Be explicit that size containment suppresses intrinsic aspect ratio
0 commit comments