Function getOrCreateStyleRule