PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Processes aggregated CSS by moving @import statements to the top, or expanding them in place.
Rules: if mode=Expand, the @import statement will still be moved to the top if not pointing to a local file or item, or when media argument is specified.

Syntax

Smartsite SXML CopyCode image Copy Code
string scf.includes.processaggregatedcssimports(string css, enum mode)

Parameters

Name Data Type Description
css String The (aggregated) CSS to finalize
mode Enum The mode used to process the CSS (expand or move to top)
Enum values:
  • MoveToTop
    Place all aggregated @import statements at the top of the document.
  • Expand
    Expand calls to @import statements by including the given style sheets in the aggregated result. Note that Expand will not work when @import rules are used with media type arguments (e.g. @import url(/print.css) print).

Return Value

Data Type Description
String String
SXML