Skip to content

Commit 89b7a2a

Browse files
committed
[css-contain-2][editorial] Consistently refer to containments being on or off, independently of the value of 'contain'.
1 parent 211b2da commit 89b7a2a

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

css-contain-2/Overview.bs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,8 @@ Strong Containment: the 'contain' property</h2>
423423
''contain: strict'' can be applied to communicate further restrictions.
424424
</div>
425425

426-
Additionally, when the [=used value=] of the 'contain' property
427-
on either the HTML <{html}> or <{body}> elements
428-
is anything other than ''contain/none'',
426+
Additionally, when any [=containments=] are active
427+
on either the HTML <{html}> or <{body}> elements,
429428
propagation of properties
430429
from the <{body}> element
431430
to the [=initial containing block=], the viewport, or the [=canvas background=],
@@ -483,6 +482,12 @@ Strong Containment: the 'contain' property</h2>
483482
of properties set on the <{html}> element itself
484483
is unaffected.
485484

485+
Note: Several properties beyond 'contain' can turn on various [=containments=] for an element.
486+
These do not affect the value of 'contain';
487+
an element can have ''contain: none''
488+
but still have [=layout containment=] turned on by 'content-visibility',
489+
for example.
490+
486491
<h2 id='containment-types'>
487492
Types of Containment</h2>
488493

@@ -497,6 +502,7 @@ Types of Containment</h2>
497502
affect what they are introducing,
498503
and include in their specification any effect not described here.
499504

505+
500506
<h3 id='containment-size'>
501507
Size Containment</h3>
502508

@@ -1233,10 +1239,9 @@ Suppressing An Element's Contents Entirely: the 'content-visibility' property {#
12331239

12341240
: <dfn>auto</dfn>
12351241
::
1236-
The user agent must change the [=used value=] of the 'contain' property
1237-
so as to turn on [=layout containment=],
1242+
Turns on [=layout containment=],
12381243
[=style containment=],
1239-
and [=paint containment=].
1244+
and [=paint containment=] for the element.
12401245

12411246
If the element is not [=relevant to the user=],
12421247
it also [=skips its contents=].

0 commit comments

Comments
 (0)