test shadowDOM only if it's supported.