Skip to content

[css-position-4] redundant document argument for top layer manipulation algorithms #8849

Closed

Description

@foolip

https://drafts.csswg.org/css-position-4/#top-manip

This sections contains algorithms like "add an element to the top layer, given a Document doc and an Element el". The call sites for these in whatwg/fullscreen#223 and whatwg/html#9093 always pass in the element's node document as the first argument. In HTML there is a document variable handy so the invocation looks OK, but in Fullscreen we'll have invocations like this:

Request removal from the top layer given element's node document and element

By having only element as the argument, the call sites will be simpler, and there's no question about whether the document can be some other document.

cc @josepharhar @mfreed7 @tabatkins @nt1m @annevk

Activity

  1. josepharhar commented on May 17, 2023

    @josepharhar
    Contributor

    I am ok with removing the document parameter. Anne pointed this out in the HTML PR here: whatwg/html#9093 (comment)

  2. added a commit that references this issue on Feb 7, 2024
    0385164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions