Feature: #81223 - includeCSS.inline property
See forge#81223
Description
A property
.inline
has been added to
page.
.
If
.inline
is set, the content of the css-file is inlined using <style>-tags.
Impact
Example:
page.includeCSS {
inline = EXT:test/Resources/Public/Css/inline.css
inline {
inline = 1
forceOnTop = 1
media = all
}
other = EXT:test/Resources/Public/Css/other.css
}
Copied!
Some notes on the implementation:
External files are not inlined.
The inline-css is compressed if
config.
is set.
Most other properties (
.all
,
.disable
,
.force
,
.if
,
.media
,
.title
) work even if
.inline
is set.
If
.import
and
.inline
are both set , the file is loaded via @import.