diff --git a/css-position-4/Overview.bs b/css-position-4/Overview.bs index 0e3d82e2b53..c00eb0cacb1 100644 --- a/css-position-4/Overview.bs +++ b/css-position-4/Overview.bs @@ -316,7 +316,7 @@ Top Layer Manipulation {#top-manip}
To request an element to be removed from the top layer, - given an {{Element}} |el|: + given an {{Element}} |el| and an optional list of steps |afterRemoval|: 1. Let |doc| be |el|'s [=Node/node document=]. @@ -327,7 +327,7 @@ Top Layer Manipulation {#top-manip} 3. Remove the UA !important ''overlay: auto'' rule targeting |el|. - 4. [=set/Append=] |el| to |doc|'s [=pending top layer removals=]. + 4. [=set/Append=] (|el|, |afterRemoval|) to |doc|'s [=pending top layer removals=].
@@ -353,10 +353,13 @@ Top Layer Manipulation {#top-manip} To process top layer removals, given a {{Document}} |doc|: - 1. For each element |el| in |doc|'s [=pending top layer removals=]: - if |el|'s computed value of 'overlay' is ''none'', - or |el| is [=not rendered=], - [=remove from the top layer immediately=] |el|. + 1. For each (element |el| and steps |afterRemoval|) in |doc|'s + [=pending top layer removals=]: if |el|'s computed value of + 'overlay' is ''none'', or |el| is [=not rendered=]: + + 1. [=remove from the top layer immediately=] |el|. + + 2. Run |afterRemoval|. Note: This is intended to be called during the "Update the Rendering" step of HTML's rendering algorithm.