handle nested blocks for CSS