Skip to content
Open
Changes from all commits
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
15 changes: 9 additions & 6 deletions css-position-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Top Layer Manipulation {#top-manip}

<div algorithm>
To <dfn export lt="request an element to be removed from the top layer | request removal from the top layer">request an element to be removed from the top layer</dfn>,
given an {{Element}} |el|:
given an {{Element}} |el| and an optional list of steps |afterRemoval|:

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

Expand All @@ -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=].
</div>

<div algorithm>
Expand All @@ -353,10 +353,13 @@ Top Layer Manipulation {#top-manip}
To <dfn export>process top layer removals</dfn>,
given a {{Document}} |doc|:

1. For each element |el| 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|.
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=]:

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.
Expand Down