Improved style's element parsing