Feature #14808
closeddynamic CSS would be nice...
0%
Description
<strong>Improvement suggestion</strong>
... if it were possible to set them up as COA. But it does not work. Why is this useful? Imagine the situation:
Very often the correct visualisation for various browsers depends only on a single line of CSS.
You could spare many various stylesheets (100ds lines of code ++) if it would be possible to substitute this single line by setting up CSS (I mean inline CSS => exported to external stylesheet by config.) it will save lotsa trouble.
Logically it should have to work. But it does not.
Code example:
mycss=COA
mycss.10=TEXT
mycss.10.value(
body{background-color:#FF0000;}
)
mycss.20 = TEXT
mycss.10.value(
td{font-size:300%;}
)
safaristyle= TEXT
safaristyle.value(
td{font-size:299%;}
)
[browser=safari] // BTW this is missing, too! ;)
mycss.20 < safaristyle
[global]
page.CSS_inlineStyle < mycss
bye, Jan
(issue imported from #M1185)
Updated by Sacha Vorbeck about 19 years ago
it is possible, use typeNum to create a special page object for your dynamic stylesheet, add
config.disableAllHeaderCode = 1
config.additionalHeaders = Content-type: text/css
config.admPanel = 0
and you have your dynamic stylesheet ready to rock and roll.