Skip to content

Commit 5b84068

Browse files
committed
drop callback from "remove from top layer immediately" steps
1 parent e0f86d1 commit 5b84068

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-position-4/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Top Layer Manipulation {#top-manip}
332332

333333
<div algorithm>
334334
To <dfn export lt="remove an element from the top layer immediately | remove from the top layer immediately">remove an element from the top layer immediately</dfn>,
335-
given an {{Element}} |el| and an optional list of steps |afterRemoval|:
335+
given an {{Element}} |el|:
336336

337337
1. Let |doc| be |el|'s [=Node/node document=].
338338

@@ -341,8 +341,6 @@ Top Layer Manipulation {#top-manip}
341341
3. Remove the UA !important ''overlay: auto'' rule targeting |el|,
342342
if it exists.
343343

344-
4. Run |afterRemoval|.
345-
346344
Note: This algorithm is only intended to be used in special cases
347345
where removing something from the top layer immediately
348346
(bypassing things like an 'overlay' transition)
@@ -357,8 +355,11 @@ Top Layer Manipulation {#top-manip}
357355

358356
1. For each (element |el| and steps |afterRemoval|) in |doc|'s
359357
[=pending top layer removals=]: if |el|&apos;s computed value of
360-
'overlay' is ''none'', or |el| is [=not rendered=],
361-
[=remove from the top layer immediately=] |el| and |afterRemoval|.
358+
'overlay' is ''none'', or |el| is [=not rendered=]:
359+
360+
1. [=remove from the top layer immediately=] |el|.
361+
362+
2. Run |afterRemoval|.
362363

363364
Note: This is intended to be called during the "Update the Rendering" step
364365
of HTML's rendering algorithm.

0 commit comments

Comments
 (0)