File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -461,18 +461,11 @@ Top Layer Manipulation {#top-manip}
461
461
given a {{Document}} |doc|
462
462
and an {{Element}} |el|:
463
463
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.
470
464
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=] .
472
467
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=] .
476
469
477
470
3. At the UA !important [=cascade origin=] ,
478
471
add a rule targeting |el|
You can’t perform that action at this time.
0 commit comments