public static boolean canWrapInMediaQuery ( @ Nullable final CascadingStyleSheet aCSS , final boolean bAllowNestedMediaQueries ) { if ( aCSS == null ) return false ; if ( bAllowNestedMediaQueries ) return true ; // Nested media queries are not allowed, therefore wrapping can only take // place if no other media queries are present return ! aCSS . hasMediaRules ( ) ; }
Check if the passed CSS can be wrapped in an external media rule .