Detect current style and style changes.

doc = d.documentElement