public static function QueryCss($source = NULL, $contentType = 'text/xml', array $options = [])
{
$builder = self::getXPathTransformer();
$query = self::Query($source, $contentType, $options);
$isHtml = $query->contentType === 'text/html';
$query->onPrepareSelector = function ($selector, $contextMode) use($builder, $isHtml) {
return $builder->toXpath($selector, $contextMode, $isHtml);
};
return $query;
}