Added media query support for CSS regions

Added logic to enable CSS regions to be initiated by a media query.