You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-position-4/Overview.bs
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -332,7 +332,7 @@ Top Layer Manipulation {#top-manip}
332
332
333
333
<div algorithm>
334
334
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|:
336
336
337
337
1. Let |doc| be |el|'s [=Node/node document=].
338
338
@@ -341,8 +341,6 @@ Top Layer Manipulation {#top-manip}
341
341
3. Remove the UA !important ''overlay: auto'' rule targeting |el|,
342
342
if it exists.
343
343
344
-
4. Run |afterRemoval|.
345
-
346
344
Note: This algorithm is only intended to be used in special cases
347
345
where removing something from the top layer immediately
348
346
(bypassing things like an 'overlay' transition)
@@ -357,8 +355,11 @@ Top Layer Manipulation {#top-manip}
357
355
358
356
1. For each (element |el| and steps |afterRemoval|) in |doc|'s
359
357
[=pending top layer removals=]: if |el|'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|.
362
363
363
364
Note: This is intended to be called during the "Update the Rendering" step
0 commit comments