Variable stypRenderGlobalsConst

stypRenderGlobals: StypRenderer = ...

CSS stylesheet renderer of global at-rules.

It renders at-rules that should stay at the top level:

  • @namespace
  • @import

At-rule parameters are taken from root CSS rule properties and treated as following.

@import:url property value is treated as media query and appended after stylesheet URL. I.e.

{
"@import:path/to/included.css": "screen"
}

becomes

@import url(path/to/included.css) screen;

@namespace property value is treated as default namespace URL. I.e.

{
"@namespace": "http://www.w3.org/1999/xhtml"
}

becomes

@namespace url(http://www.w3.org/1999/xhtml);

@namespace:prefix property value is treated as namespace URL with the given prefix. I.e

{
"@namespace:svg": "http://www.w3.org/2000/svg"
}

becomes

@namespace svg url(http://www.w3.org/2000/svg);

Enabled by default in produceStyle function.

Generated using TypeDoc