Parse styles with tinycss2 and add media queries support
ATTCNI-6032

Also refactor some tests