added detection of css attributes