@@ -1994,6 +1994,18 @@ Suppressing An Element's Contents Entirely: the 'content-visibility' property {#
1994
1994
When the element becomes disconnected, the element's [=proximity to the viewport=] becomes [=not determined=] .
1995
1995
</div>
1996
1996
1997
+ <div>
1998
+ All elements have a <dfn>currently relevant to the user</dfn> flag, initially false.
1999
+ </div>
2000
+
2001
+ <div algorithm="update content relevancy for a document">
2002
+ To <dfn export>update content relevancy for a document</dfn> <var> doc</var> :
2003
+
2004
+ 1. For each <var> element</var> [=connected=] to doc with ''auto'' used value of ''content-visibility''
2005
+ 1. If <var> element</var> is [=relevant to the user=] , then set <var> element</var> 's [=currently relevant to the user=] flag to true.
2006
+ 1. Otherwise, set <var> element</var> 's [=currently relevant to the user=] flag to false.
2007
+ </div>
2008
+
1997
2009
<div algorithm>
1998
2010
An element is <dfn export>relevant to the user</dfn>
1999
2011
if <strong> any</strong> of the following conditions are true:
@@ -2308,14 +2320,7 @@ Restrictions and Clarifications {#cv-notes}
2308
2320
</wpt>
2309
2321
2310
2322
3. If an element starts or stops [=skipped contents|skipping its contents=] ,
2311
- this change happens
2312
- after the requestAnimationFrame callbacks
2313
- of the frame that renders the effects of the change
2314
- have run.
2315
- Specifically, such changes will take effect between steps 13 and 14
2316
- of [=update the rendering=] step of the Processing Model
2317
- (between “run the animation frame callbacks”
2318
- and “run the update intersection observations steps”).
2323
+ this change happens when [=update content relevancy for a document=] runs.
2319
2324
2320
2325
<div class=note>
2321
2326
Determining the viewport intersection of the element
0 commit comments