Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drop callback from "remove from top layer immediately" steps
  • Loading branch information
keithamus committed Sep 24, 2025
commit 5b84068b10f5fc90e8fab971d0e9cdcaa19bf6da
11 changes: 6 additions & 5 deletions css-position-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Top Layer Manipulation {#top-manip}

<div algorithm>
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>,
given an {{Element}} |el| and an optional list of steps |afterRemoval|:
given an {{Element}} |el|:

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

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

4. Run |afterRemoval|.

Note: This algorithm is only intended to be used in special cases
Comment thread
keithamus marked this conversation as resolved.
where removing something from the top layer immediately
(bypassing things like an 'overlay' transition)
Expand All @@ -357,8 +355,11 @@ Top Layer Manipulation {#top-manip}

1. For each (element |el| and steps |afterRemoval|) in |doc|'s
[=pending top layer removals=]: if |el|&apos;s computed value of
'overlay' is ''none'', or |el| is [=not rendered=],
[=remove from the top layer immediately=] |el| and |afterRemoval|.
'overlay' is ''none'', or |el| is [=not rendered=]:

1. [=remove from the top layer immediately=] |el|.
Comment thread
keithamus marked this conversation as resolved.

2. Run |afterRemoval|.
Comment thread
keithamus marked this conversation as resolved.

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