Package | Description |
---|---|
org.htmlunit.css |
Classes supporting Cascading Style Sheets.
|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.javascript.host.css |
Implementations of the CSS JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Method and Description |
---|---|
CssStyleSheet |
CssStyleSheet.getImportedStyleSheet(org.htmlunit.cssparser.dom.CSSImportRuleImpl importRule) |
static CssStyleSheet |
CssStyleSheet.loadStylesheet(HtmlElement element,
HtmlLink link,
String url)
Loads the stylesheet at the specified link or href.
|
Modifier and Type | Method and Description |
---|---|
CssStyleSheet |
HtmlStyle.getSheet() |
CssStyleSheet |
HtmlLink.getSheet()
Returns the associated style sheet (only valid for links of type
<link rel="stylesheet" type="text/css" href="..." |
Modifier and Type | Method and Description |
---|---|
List<CssStyleSheet> |
HtmlPage.getStyleSheets()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
CssStyleSheet |
CSSStyleSheet.getCssStyleSheet()
Returns the wrapped stylesheet.
|
Constructor and Description |
---|
CSSStyleSheet(HTMLElement element,
org.htmlunit.corejs.javascript.Scriptable parentScope,
CssStyleSheet cssStyleSheet)
Creates a new stylesheet representing the specified CSS stylesheet.
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.