Better CSS background detection