Skip to content

Commit bd8fd11

Browse files
committed
[css-position-4] Restore the older Fullscreen spec's behavior for 'add to top layer'.
1 parent d32c836 commit bd8fd11

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

css-position-4/Overview.bs

+3-10
Original file line numberDiff line numberDiff line change
@@ -461,18 +461,11 @@ Top Layer Manipulation {#top-manip}
461461
given a {{Document}} |doc|
462462
and an {{Element}} |el|:
463463

464-
1. If |doc|'s [=Document/top layer=] [=set/contains=] |el| already:
465-
1. If |doc|'s [=pending top layer removals=] [=set/contains=] |el| as well,
466-
[=set/remove=] |el| from both |doc|'s [=Document/top layer=]
467-
and [=pending top layer removals=],
468-
then [=set/append=] |el| to |doc|'s [=Document/top layer=].
469-
Return.
470464

471-
<!-- In other words, eagerly process pending removals. -->
465+
1. [=set/Remove=] |el| from |doc|'s [=Document/top layer=],
466+
then [=set/append=] |el| to |doc|'s [=Document/top layer=].
472467

473-
2. Otherwise, do nothing and return.
474-
475-
2. [=set/Append=] |el| to |doc|'s [=Document/top layer=].
468+
2. [=set/Remove=] |el| from |doc|'s [=pending top layer removals=].
476469

477470
3. At the UA !important [=cascade origin=],
478471
add a rule targeting |el|

0 commit comments

Comments
 (0)