File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 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}
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|
You can’t perform that action at this time.
0 commit comments