media query parsing

media query parsing and test cases.