Adding error detection for CSS

Change-Id: I8ecad32a5c875a6effda2a71909da9f4e1a4219f