@Kilian @firefoxnightly the selector is scoped to the root node, so it doesn't cross the shadow boundary. It would be interesting to do it, but might be a bit complex, especially with things like :has()