The spec says:
The ident() function can be used as a value for any property or function argument that accepts a <custom-ident>.
Does this mean that it's not valid in other contexts? For example: @position-try ident("--p" 1) {}. If it is valid, what happens with e.g. @position-try ident("--p" sign(16px - 1em)) {}? Or @position-try ident("--p" sibling-index()) {}?
@container ident("--p" sign(16px - 1em)) {}, if valid, would need to resolve em (etc) against something that's not the container's font-size (unlike em in the query itself), since the ident is the thing that determines what to query.