Fix bug in CssGeneration to complete LT-15335

Change-Id: If93b9585706826fc9bfa0b0a09707a570f2d7a4b