SelectorList.needsDocument

bool needsDocument() const @nogc nothrow pure

Does any selector depend on the whole document? (:lang() on the <meta> default language, :dir() on the text of the ancestors with dir=auto)