Resizing bugs and start of CSS handling