Check for ShadyDOM and `:dir` selectors before trying css transform
Check for ShadyDOM and `:dir` selectors before trying css transform

Should save a considerable amount of style processing when not needed.

Polymer/polymer,Polymer/polymer,Polymer/polymer