Closed pravic closed 8 years ago
I do not have such file in SDK.
Yes, @const
are works, verified right now.
As for conditional-constants, here it is, and not work:
<html>
<head>
<title></title>
<style>
@media test == 1 {
@const TEST: #FF0000;
}
@media test == 2 {
@const TEST: #0000FF;
}
div { color: @TEST; }
</style>
<script type="text/tiscript">
$(button#one).onClick = function() {
view.mediaVars({test:1},true);
}
$(button#two).onClick = function() {
view.mediaVars({test:2},true);
}
</script>
</head>
<body>
<div>Test</div>
<button #one>1</button>
<button #two>2</button>
</body>
</html>
samples/css++/conditional-constants.htm is not working even with fixing second
#one
.