Package org.loboevolution.html.style
Class CSSUtilities
java.lang.Object
org.loboevolution.html.style.CSSUtilities
CSSUtilities class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputSource
getCssInputSourceForStyleSheet
(String text, String scriptURI) getCssInputSourceForStyleSheet.static SelectorList
getSelectorList
(String selectors) getSelectorList.static boolean
matchesMedia
(String mediaValues, Window window) matchesMedia.static CSSStyleSheetImpl
parseCssExternal
(HtmlRendererConfig config, URI scriptURI, String baseURI, String integrity, boolean test) parseCssExternal.static MediaListImpl
parseMedia
(String mediaString) parseMedia.static String
preProcessCss
(String text) preProcessCss.
-
Method Details
-
getCssInputSourceForStyleSheet
getCssInputSourceForStyleSheet.
- Parameters:
text
- aString
object.scriptURI
- aString
object.- Returns:
- a
InputSource
object.
-
parseMedia
parseMedia.
- Parameters:
mediaString
- aString
object.- Returns:
- a
MediaListImpl
object. - Throws:
Exception
- if any.
-
matchesMedia
matchesMedia.
-
parseCssExternal
public static CSSStyleSheetImpl parseCssExternal(HtmlRendererConfig config, URI scriptURI, String baseURI, String integrity, boolean test) throws Exception parseCssExternal.
- Parameters:
config
- aHtmlRendererConfig
object.scriptURI
- aURI
object.baseURI
- aString
object.integrity
- aString
object.- Returns:
- a
CSSStyleSheetImpl
object. - Throws:
Exception
- if any.
-
getSelectorList
getSelectorList.
- Parameters:
selectors
- aString
object.- Returns:
- a
SelectorList
object. - Throws:
Exception
-
preProcessCss
preProcessCss.
-