@@ -1999,15 +1999,13 @@ Suppressing An Element's Contents Entirely: the 'content-visibility' property {#
1999
1999
</div>
2000
2000
2001
2001
<div algorithm="update content relevancy for a document">
2002
- To <dfn export>update content relevancy for a document</dfn> given a document <var> doc</var> , and a boolean <var> isFirstIteration </var> :
2002
+ To <dfn export>update content relevancy for a document</dfn> given a document <var> doc</var> , and a boolean <var> updateNonInitial </var> :
2003
2003
2004
2004
1. Let <var> changed</var> be false.
2005
2005
1. For each <var> element</var> [=connected=] to doc with ''auto'' used value of ''content-visibility''
2006
- 1. Determine proximity to the viewport for <var> element</var> .
2007
- 1. If <var> element</var> is not [=currently relevant to the user=] and <var> element</var> is [=relevant to the user=] , then:
2008
- 2. Set <var> changed</var> to true.
2009
- 2. Set <var> element</var> 's [=currently relevant to the user=] flag to true.
2010
- 1. If <var> isFirstIteration</var> is false, then [=continue=] .
2006
+ 1. Let <var> isInitialDetermination</var> be true if <var> element</var> 's [=proximity to the viewport=] is [=not determined=] , otherwise false.
2007
+ 1. Determine [=proximity to the viewport=] for <var> element</var> .
2008
+ 1. If <var> updateNonInitial</var> is false and <var> isInitialDetermination</var> is false, then [=continue=] .
2011
2009
1. If <var> element</var> is [=relevant to the user=] , then:
2012
2010
1. If <var> element</var> 's [=currently relevant to the user=] flag is false, set <var> changed</var> to true.
2013
2011
1. Set <var> element</var> 's [=currently relevant to the user=] flag to true.
@@ -2017,10 +2015,12 @@ Suppressing An Element's Contents Entirely: the 'content-visibility' property {#
2017
2015
1. return <var> changed</var> .
2018
2016
2019
2017
<div class=note>
2020
- The intent of the <var> changed</var> variable is for the initial viewport
2021
- proximity determination, which takes effect immediately, to be reflected in
2022
- the style and layout calculation which is carried out in a previous step of
2023
- this loop. Proximity determinations other than the initial one take effect
2018
+ The intent of the <var> changed</var> and <var> updateNonInitial</var>
2019
+ variables is for the initial viewport proximity determination, which takes
2020
+ effect immediately, to be reflected in the style and layout calculation
2021
+ this frame.
2022
+
2023
+ Proximity determinations other than the initial one take effect
2024
2024
at the next rendering opportunity.
2025
2025
</div>
2026
2026
</div>
0 commit comments